From: Peter Rosin Date: Wed, 19 Sep 2012 06:43:57 +0000 (+0200) Subject: tests: don't feed -no-undefined to the linker during configure. X-Git-Tag: v2.4.2.418~63 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b6bb7f9cdf66c632c2837be9ad0077f7f533b824;p=thirdparty%2Flibtool.git tests: don't feed -no-undefined to the linker during configure. * 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 --- diff --git a/tests/deplibs-mingw.at b/tests/deplibs-mingw.at index 825240e94..eb449fc74 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