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 ad8aeb7d libtool: Add no-undefined flag based on host OS
ad8aeb7d is described below
commit ad8aeb7d26ca8c1e2a66b272a63d6c598b26fb62
Author: Ileana Dumitrescu <[email protected]>
AuthorDate: Tue Jun 11 16:34:22 2024 +0300
libtool: Add no-undefined flag based on host OS
Without the no-undefined flag, the test will fail on Mingw and
Cygwin, so the flag will be appended for windows compilation.
* tests/bug_62343.at: Add no-undefined flag for windows-based
compilation.
---
tests/bug_62343.at | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/tests/bug_62343.at b/tests/bug_62343.at
index 43a74b6f..75ceafd3 100644
--- a/tests/bug_62343.at
+++ b/tests/bug_62343.at
@@ -54,7 +54,16 @@ AT_CHECK([$LIBTOOL --mode=compile --tag=CXX g++
-no-canonical-prefixes -c x.cpp]
AT_CHECK([$GREP -- '-no-canonical-prefixes' stdout], [0], [ignore])
-AT_CHECK([$LIBTOOL --mode=link --tag=CXX g++ -no-canonical-prefixes -o libx.la
-rpath /usr/lib64/ x.lo], [0], [stdout], [stderr])
+host_flags=:
+case $host_os in
+ cygwin* | mingw* | windows*)
+ host_flags=-no-undefined
+ ;;
+ *)
+ ;;
+esac
+
+AT_CHECK([$LIBTOOL --mode=link --tag=CXX g++ -no-canonical-prefixes
$host_flags -o libx.la -rpath /usr/lib64/ x.lo], [0], [stdout], [stderr])
AT_CHECK([$GREP -- '-no-canonical-prefixes' stdout], [0], [ignore])