* 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 <p...@lysator.liu.se>
---
 tests/deplibs-mingw.at |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Ok to push?
Or should I simply rename the LDFLAGS variable?  To my_LDFLAGS?

Cheers,
Peter

diff --git a/tests/deplibs-mingw.at b/tests/deplibs-mingw.at
index 6973c4f..dd2b8e8 100644
--- a/tests/deplibs-mingw.at
+++ b/tests/deplibs-mingw.at
@@ -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
--
1.7.9

Reply via email to