This is an automated email from the git hooks/post-receive script.

ildumi pushed a commit to branch development
in repository libtool.

The following commit(s) were added to refs/heads/development by this push:
     new 2da3546a libtool: Skip passing CXX flags test on NetBSD
2da3546a is described below

commit 2da3546a0de5c952a2ffd20db6ff310a32a6f373
Author: Ileana Dumitrescu <ileanadumitresc...@gmail.com>
AuthorDate: Tue Jun 11 17:58:47 2024 +0300

    libtool: Skip passing CXX flags test on NetBSD
    
    When linking on NetBSD, the test fails to locate a shared version of
    gcc, so a static version of the module is generated, which does not pass
    the defined checks. A FIXME note has been added for future debugging.
    
    * tests/flags.at: Skip passing CXX flags test on NetBSD.
---
 tests/flags.at | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/tests/flags.at b/tests/flags.at
index fb4109db..c0663c41 100644
--- a/tests/flags.at
+++ b/tests/flags.at
@@ -26,7 +26,17 @@ m4_foreach([lt_tag], [CC, CXX, F77, FC, GCJ],
 AT_KEYWORDS([libtool])
 LT_AT_TAG(m4_defn([lt_tag]))
 
-LDFLAGS="$LDFLAGS -no-undefined"
+case $host_os in
+  # FIXME: Locate shared version of gcc library for NetBSD.
+  netbsd*)
+    if test "CXX" = "lt_tag"; then
+      AT_SKIP_IF([:])
+    fi
+    ;;
+  *)
+    LDFLAGS="$LDFLAGS -no-undefined"
+    ;;
+esac
 eval "`$LIBTOOL --config | $EGREP '^(FGREP)='`"
 
 m4_case(lt_tag,

Reply via email to