2007-02-09 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 9 Feb 2007 18:20:24 +0000 (18:20 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 9 Feb 2007 18:20:24 +0000 (18:20 +0000)
* configure.in (targ_extra_emuls): Add $targ64_extra_emuls if
want64 is true.
(targ_extra_libpath): Add $targ64_extra_libpath if want64 is
true
* configure: Regenerated.

* configure.tgt (targ_extra_libpath): Initialize.
(targ64_extra_emuls): New. Document. Initialize.
(targ64_extra_libpath): Likewise.
(i[3-7]86-*-linux-*): Set targ64_extra_emuls and
targ64_extra_libpath.
(powerpc*-*-linux*): Likewise.
(s390-*-linux*): Likewise.

ld/ChangeLog
ld/configure
ld/configure.in
ld/configure.tgt

index cbfac105539b59cf90688357e70e8ea041cea512..93e7af9dfc4ba76dcf010c5f5de56a02a1a528b1 100644 (file)
@@ -1,3 +1,19 @@
+2007-02-09  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * configure.in (targ_extra_emuls): Add $targ64_extra_emuls if
+       want64 is true.
+       (targ_extra_libpath): Add $targ64_extra_libpath if want64 is
+       true
+       * configure: Regenerated.
+
+       * configure.tgt (targ_extra_libpath): Initialize.
+       (targ64_extra_emuls): New. Document. Initialize.
+       (targ64_extra_libpath): Likewise.
+       (i[3-7]86-*-linux-*): Set targ64_extra_emuls and
+       targ64_extra_libpath.
+       (powerpc*-*-linux*): Likewise.
+       (s390-*-linux*): Likewise.
+
 2007-02-07  Paul Brook  <paul@codesourcery.com>
 
        * configure.tgt: Add arm*-*-uclinux-*eabi.
index adedb7fa29d3b745962b1f9b1c2850fd6f8e41ab..8a81d9a7c025a5aa0baedf89d28c86393c465c1a 100755 (executable)
@@ -7453,6 +7453,11 @@ do
       . ${srcdir}/../bfd/config.bfd
     fi
 
+    if test x${want64} = xtrue; then
+      targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
+      targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
+    fi
+
     for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
        case " $all_emuls " in
        *" e${i}.o "*) ;;
index c5de85737dc36e7fd2561de2c2ea41cf8b297807..d2dd6f752294ff426206118ec3055e609b795dc4 100644 (file)
@@ -175,6 +175,11 @@ do
       . ${srcdir}/../bfd/config.bfd
     fi
 
+    if test x${want64} = xtrue; then
+      targ_extra_emuls="$targ_extra_emuls $targ64_extra_emuls"
+      targ_extra_libpath="$targ_extra_libpath $targ64_extra_libpath"
+    fi
+
     for i in $targ_emul $targ_extra_emuls $targ_extra_libpath; do
        case " $all_emuls " in
        *" e${i}.o "*) ;;
index 78827f43f32b8852cdd2bafd29ea39446a93a17b..910c4867225a0393b035a5e897c9cc669ca42241 100644 (file)
@@ -9,11 +9,18 @@
 #  targ_extra_emuls    additional linker emulations to provide
 #  targ_extra_libpath  additional linker emulations using LIB_PATH
 #  targ_extra_ofiles   additional objects needed by the emulation
+#  targ64_extra_emuls  additional linker emulations to provide if
+#                      --enable-64-bit-bfd is given or if host is 64 bit.
+#  targ64_extra_libpath        additional linker emulations using LIB_PATH if
+#                      --enable-64-bit-bfd is given or if host is 64 bit.
 #  NATIVE_LIB_DIRS     library directories to search on this host
 #                      (if we are a native or sysrooted linker)
 
 targ_extra_emuls=
+targ_extra_libpath=
 targ_extra_ofiles=
+targ64_extra_emuls=
+targ64_extra_libpath=
 
 # Please try to keep this table in alphabetic order - it makes it
 # much easier to lookup a specific archictecture.  Naturally any
@@ -171,10 +178,8 @@ i[3-7]86-*-linux*aout*)    targ_emul=i386linux
 i[3-7]86-*-linux*oldld)        targ_emul=i386linux; targ_extra_emuls=elf_i386 ;;
 i[3-7]86-*-linux-*)    targ_emul=elf_i386
                        targ_extra_emuls=i386linux
-                       if test x${want64} = xtrue; then
-                         targ_extra_emuls="$targ_extra_emuls elf_x86_64"
-                         targ_extra_libpath=elf_x86_64
-                       fi
+                       targ64_extra_emuls=elf_x86_64
+                       targ64_extra_libpath=elf_x86_64
                        tdir_i386linux=${targ_alias}aout ;;
 x86_64-*-linux-*)      targ_emul=elf_x86_64
                        targ_extra_emuls="elf_i386 i386linux"
@@ -416,10 +421,9 @@ powerpc*-*-linux*) case "${targ}" in
                        *)      targ_emul=elf32ppclinux
                                targ_extra_emuls="elf32ppc elf32ppcsim"
                                targ_extra_libpath=elf32ppc
-                               if test "${want64}" = "true"; then
-                                       targ_extra_emuls="$targ_extra_emuls elf64ppc"
-                                       targ_extra_libpath="$targ_extra_libpath elf64ppc"
-                               fi ;;
+                               targ64_extra_emuls=elf64ppc
+                               targ64_extra_libpath=elf64ppc
+                               ;;
                        esac ;;
 powerpc*le-*-elf* | powerpc*le-*-eabi* | powerpc*le-*-solaris* \
   | powerpc*le-*-sysv* | powerpc*le-*-vxworks*)
@@ -470,11 +474,9 @@ s390x-*-linux*)         targ_emul=elf64_s390
 s390x-*-tpf*)          targ_emul=elf64_s390
                        tdir_elf_s390=`echo ${targ_alias} | sed -e 's/s390x/s390/'` ;;
 s390-*-linux*)          targ_emul=elf_s390
-                       if test "${want64}" = "true"; then
-                         targ_extra_emuls=elf64_s390
-                         targ_extra_libpath=$targ_extra_emuls
-                         tdir_elf64_s390=`echo ${targ_alias} | sed -e 's/s390/s390x/'`
-                       fi
+                       targ64_extra_emuls=elf64_s390
+                       targ64_extra_libpath=elf64_s390
+                       tdir_elf64_s390=`echo ${targ_alias} | sed -e 's/s390/s390x/'`
                        ;;
 score-*-elf)            targ_emul=scoreelf ;;
 sh-*-linux*)           targ_emul=shlelf_linux