From: Peter Rosin Date: Mon, 8 Oct 2012 15:59:51 +0000 (+0200) Subject: tests: skip the with-pic test only if DLL_EXPORT is defined X-Git-Tag: v2.4.2.418~136 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b3e96ce7d1566d6120112f3b10e7782cc62cff8d;p=thirdparty%2Flibtool.git tests: skip the with-pic test only if DLL_EXPORT is defined For some systems with PIC as default, the test was inadvertently skipped. Issue introduced in commit 4440d65. Report by Roumen Petrov. * tests/with-pic.at: Skip the test for systems that define DLL_EXPORT. Signed-off-by: Peter Rosin --- diff --git a/tests/with-pic.at b/tests/with-pic.at index 2ffbd0345..8739f2003 100644 --- a/tests/with-pic.at +++ b/tests/with-pic.at @@ -32,11 +32,11 @@ LT_AT_BOOTSTRAP([], [-I m4], [], [--add-missing], [], [], [ignore]) eval `$LIBTOOL --config | $EGREP '^(pic_flag|FGREP)='` -real_pic=false +no_dlls=: case " $pic_flag " in -[*" "[^" "-]* | *" "-[^D]*]) real_pic=: ;; +*" -DDLL_EXPORT "*) no_dlls=false ;; esac -AT_CHECK([$real_pic || exit 77]) +AT_CHECK([$no_dlls || exit 77]) AT_CHECK([test . != "$at_srcdir" || exit 77]) : ${MAKE=make}