]> Savannah Git Hosting - gnulib.git/commitdiff
havelib: Add support for NetBSD/sparc64.
authorBruno Haible <bruno@clisp.org>
Sat, 10 Feb 2024 10:17:47 +0000 (11:17 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 10 Feb 2024 10:17:47 +0000 (11:17 +0100)
* m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On NetBSD/sparc64 in
32-bit mode, search for libraries in /usr/lib/sparc.

ChangeLog
m4/lib-prefix.m4

index 7ada620262eb957c0472dc34607464964d91e510..143100114af4868307b0657f07b3ea9ee36747d1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2024-02-10  Bruno Haible  <bruno@clisp.org>
+
+       havelib: Add support for NetBSD/sparc64.
+       * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On NetBSD/sparc64 in
+       32-bit mode, search for libraries in /usr/lib/sparc.
+
 2024-02-09  Bruno Haible  <bruno@clisp.org>
 
        ctime, localtime, tzset, wcsftime: Make multithread-safe.
index 0c6f96ca68f1966682a89b5a5ef89fb344855133..f327c6ef033aa00c0b6d71412dd6d675e0326fa7 100644 (file)
@@ -1,4 +1,4 @@
-# lib-prefix.m4 serial 21
+# lib-prefix.m4 serial 22
 dnl Copyright (C) 2001-2005, 2008-2024 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -256,6 +256,15 @@ changequote([,])dnl
            esac
          fi
          ;;
+       netbsd*)
+         dnl On NetBSD/sparc64, there is a 'sparc' subdirectory that contains
+         dnl 32-bit libraries.
+         if test $HOST_CPU_C_ABI_32BIT != no; then
+           case "$host_cpu" in
+             sparc*) acl_libdirstem2=lib/sparc ;;
+           esac
+         fi
+         ;;
        *)
          dnl If $CC generates code for a 32-bit ABI, the libraries are
          dnl surely under $prefix/lib or $prefix/lib32, not $prefix/lib64.