]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool: hurd-amd64 support
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Sat, 6 May 2023 14:17:09 +0000 (16:17 +0200)
committerMike Frysinger <vapier@gentoo.org>
Sun, 14 Jan 2024 05:48:00 +0000 (00:48 -0500)
This adds support for passing -m elf32_x86_64 vs -m elf_x86_64 to the
linker on hurd-amd64.

Url: https://savannah.gnu.org/patch/?10398

* m4/libtool.m4: dd x86_64-gnu* case to pass -m elf32_x86_64 vs
-m elf_x86_64 to linker.

m4/libtool.m4

index eb0a515b4949f1300f9bad13f9fe4b5962b7dbe9..ea2aea2e0e2b0df9e265a3e266967108f4cf2c3a 100644 (file)
@@ -1368,7 +1368,7 @@ mips64*-*linux*)
   ;;
 
 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
-s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
+s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
   # Find out what ABI is being produced by ac_compile, and set linker
   # options accordingly.  Note that the listed cases only cover the
   # situations where additional linker options are needed (such as when
@@ -1383,7 +1383,7 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
          x86_64-*kfreebsd*-gnu)
            LD="${LD-ld} -m elf_i386_fbsd"
            ;;
-         x86_64-*linux*)
+         x86_64-*linux*|x86_64-gnu*)
            case `$FILECMD conftest.o` in
              *x86-64*)
                LD="${LD-ld} -m elf32_x86_64"
@@ -1412,7 +1412,7 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
          x86_64-*kfreebsd*-gnu)
            LD="${LD-ld} -m elf_x86_64_fbsd"
            ;;
-         x86_64-*linux*)
+         x86_64-*linux*|x86_64-gnu*)
            LD="${LD-ld} -m elf_x86_64"
            ;;
          powerpcle-*linux*)