bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* havelib: Add support for NetBSD/sparc64
@ 2024-02-10 10:20 Bruno Haible
  0 siblings, 0 replies; only message in thread
From: Bruno Haible @ 2024-02-10 10:20 UTC (permalink / raw)
  To: bug-gnulib

On NetBSD/sparc64, there is a 'sparc' subdirectory that contains 32-bit
libraries. The 'havelib' module should use this info.

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.

diff --git a/m4/lib-prefix.m4 b/m4/lib-prefix.m4
index 0c6f96ca68..f327c6ef03 100644
--- a/m4/lib-prefix.m4
+++ b/m4/lib-prefix.m4
@@ -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 @@ AC_DEFUN([AC_LIB_PREPARE_MULTILIB]
+       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.

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-02-10 10:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-10 10:20 havelib: Add support for NetBSD/sparc64 Bruno Haible

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).