]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Support creating shared libraries on Hurd/x86_64.
authorBruno Haible <bruno@clisp.org>
Sun, 21 May 2023 20:22:38 +0000 (22:22 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 21 May 2023 20:23:54 +0000 (22:23 +0200)
Patch from
<https://lists.gnu.org/archive/html/bug-hurd/2023-05/msg00086.html>.

* m4/libtool.m4 (_LT_ENABLE_LOCK): Treat Hurd/x86_64 like
Linux/x86_64.

m4/libtool.m4

index bd31d3da7ef9e9af9ac183d824a43dc55ecfa9dc..5dffb192f9b2f6edb39c2d40bff285dda52509d1 100644 (file)
@@ -1,6 +1,6 @@
 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
 #
-#   Copyright (C) 1996-2001, 2003-2019, 2021-2022 Free Software
+#   Copyright (C) 1996-2001, 2003-2019, 2021-2023 Free Software
 #   Foundation, Inc.
 #   Written by Gordon Matzigkeit, 1996
 #
@@ -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*)