]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
tests: don't feed -no-undefined to the linker during configure.
authorPeter Rosin <peda@lysator.liu.se>
Wed, 19 Sep 2012 06:43:57 +0000 (08:43 +0200)
committerPeter Rosin <peda@lysator.liu.se>
Thu, 3 Jan 2013 12:28:12 +0000 (13:28 +0100)
* tests/deplibs-mingw.at: Restore LDFLAGS for the configure run so that
the linker does not see -no-undefined. Makes the test pass instead of
skip on MinGW.

Signed-off-by: Peter Rosin <peda@lysator.liu.se>
tests/deplibs-mingw.at

index 825240e949ed8f4d1bee33be03598a2c04d6bc80..eb449fc74ebc48cd38abc7a90f61e08bce13b453 100644 (file)
@@ -31,6 +31,7 @@ cwd=`pwd`
 instdir=$cwd/inst
 libdir=$instdir/lib
 bindir=$instdir/bin
+save_LDFLAGS=$LDFLAGS
 LDFLAGS="$LDFLAGS -no-undefined"
 
 mkdir inst inst/bin inst/lib
@@ -76,7 +77,9 @@ EOF
       cd new-libtool
       # configure might fail due to in-tree build of toplevel, or
       # missing configure flags and other reasons.
+      LDFLAGS=$save_LDFLAGS
       LT_AT_CONFIGURE([|| exit 77], ["$abs_top_srcdir"/configure])
+      LDFLAGS="$LDFLAGS -no-undefined"
       cd ..
       LIBTOOL=new-libtool/libtool
       export LIBTOOL