* Ralf Wildenhues wrote on Mon, Jun 07, 2010 at 10:42:42PM CEST:
> Fix versioning test for LDFLAGS=-Wl,--as-needed.
As a followup, I'm fixing the test for w32 systems with this obvious
patch.
Cheers,
Ralf
Make versioning test stricter for w32, enable shared libs.
* tests/versioning.at (versioning): Add -no-undefined to
LDFLAGS.
(test_uninstalled): Also move $bindir out of the way
temporarily.
diff --git a/tests/versioning.at b/tests/versioning.at
index 31f294e..69bf731 100644
--- a/tests/versioning.at
+++ b/tests/versioning.at
@@ -103,6 +103,7 @@ int main (void)
inst=`pwd`/inst
libdir=$inst/lib
bindir=$inst/bin
+LDFLAGS="$LDFLAGS -no-undefined"
mkdir $inst $libdir $bindir
for file in liba1.c liba2.c liba3.c liba4.c libb.c; do
@@ -155,10 +156,12 @@ test_uninstalled ()
{
# temporarily move installed libraries out of the way in order to avoid
# skewing test results:
- mv $libdir temp
+ mv $libdir temp-lib
+ mv $bindir temp-bin
LT_AT_EXEC_CHECK([./prog1])
LT_AT_EXEC_CHECK([./prog2])
- mv temp $libdir
+ mv temp-lib $libdir
+ mv temp-bin $bindir
}
test_installed ()