From: Ralf Wildenhues Date: Mon, 7 Jun 2010 20:32:26 +0000 (+0200) Subject: Make versioning test stricter for w32, enable shared libs. X-Git-Tag: v2.2.10~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0e3d88b8399b610522ddb59625f3f9cc021fdd14;p=thirdparty%2Flibtool.git 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. Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index f1aab551f..9a03c0104 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2010-06-07 Ralf Wildenhues + 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. + Fix versioning test for LDFLAGS=-Wl,--as-needed. * tests/versioning.at (versioning): For the library update hypotheses, ensure the unchanged library libb isn't accidentally diff --git a/tests/versioning.at b/tests/versioning.at index 31f294ec0..69bf731ef 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 ()