]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool: Skip passing CXX flags test on NetBSD
authorIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Tue, 11 Jun 2024 14:58:47 +0000 (17:58 +0300)
committerIleana Dumitrescu <ileanadumitrescu95@gmail.com>
Tue, 18 Jun 2024 17:37:16 +0000 (20:37 +0300)
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

index fb4109dbb4ecfcefcd319f1488c2b877167863a9..c0663c4196fb311ec22fe526409af654136861a8 100644 (file)
@@ -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,