From 7464f1db29ccd870c3adf2b9e8093c783060c7bb Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 6 May 2023 16:17:09 +0200 Subject: [PATCH] libtool: hurd-amd64 support 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 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/m4/libtool.m4 b/m4/libtool.m4 index eb0a515b..ea2aea2e 100644 --- a/m4/libtool.m4 +++ b/m4/libtool.m4 @@ -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*)