]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4: Support linking of 64-bit libraries on
authorJakub Jelinek <jakub@redhat.com>
Mon, 18 Nov 2002 18:06:20 +0000 (18:06 +0000)
committerBob Friesenhahn <bfriesen@simple.dallas.tx.us>
Mon, 18 Nov 2002 18:06:20 +0000 (18:06 +0000)
sparc{,v[789]}-*linux*, s390*-*linux*, ppc*-*linux*
GNU/Linux systems when the platform default is to build
32-bit libraries.

ChangeLog
libtool.m4

index 8cc566ce66f383d56ef69729d74e35d80d015d49..4876385b7627d1f76dea3c5d1ccd2f846ba3949a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2002-11-18  Jakub Jelinek  <jakub@redhat.com>
+
+       * libtool.m4: Support linking of 64-bit libraries on
+       sparc{,v[789]}-*linux*, s390*-*linux*, ppc*-*linux*
+       GNU/Linux systems when the platform default is to build
+       32-bit libraries.
+
 2002-11-18  Andreas Jaeger  <aj@suse.de>, Bo Thorsen  <bo@suse.de>
 
        * libtool.m4: Support linking of 32-bit libraries with ld
index 06b178f2adad8e16ef8855aebabf8cac5c7173ab..bbd46d678b5ba61308ee20b74ea767969cf3f80c 100644 (file)
@@ -477,25 +477,41 @@ ia64-*-hpux*)
   rm -rf conftest*
   ;;
 
-x86_64-*linux*|ppc64-*linux*|s390x-*linux*|sparc64-*linux*)
+x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
   # Find out which ABI we are using.
   echo 'int i;' > conftest.$ac_ext
   if AC_TRY_EVAL(ac_compile); then
     case "`/usr/bin/file conftest.o`" in
     *32-bit*)
       case $host in
-       x86_64-*linux*)
-         LD="${LD-ld} -m elf_i386"
-         ;;
-       ppc64-*linux*)
-         LD="${LD-ld} -m elf32ppclinux"
-         ;;
-       s390x-*linux*)
-         LD="${LD-ld} -m elf_s390"
-         ;;
-       sparc64-*linux*)
-         LD="${LD-ld} -m elf32_sparc"
-         ;;
+        x86_64-*linux*)
+          LD="${LD-ld} -m elf_i386"
+          ;;
+        ppc64-*linux*)
+          LD="${LD-ld} -m elf32ppclinux"
+          ;;
+        s390x-*linux*)
+          LD="${LD-ld} -m elf_s390"
+          ;;
+        sparc64-*linux*)
+          LD="${LD-ld} -m elf32_sparc"
+          ;;
+      esac
+      ;;
+    *64-bit*)
+      case $host in
+        x86_64-*linux*)
+          LD="${LD-ld} -m elf_x86_64"
+          ;;
+        ppc*-*linux*|powerpc*-*linux*)
+          LD="${LD-ld} -m elf64ppc"
+          ;;
+        s390*-*linux*)
+          LD="${LD-ld} -m elf64_s390"
+          ;;
+        sparc*-*linux*)
+          LD="${LD-ld} -m elf64_sparc"
+          ;;
       esac
       ;;
     esac