From b3e96ce7d1566d6120112f3b10e7782cc62cff8d Mon Sep 17 00:00:00 2001 From: Peter Rosin Date: Mon, 8 Oct 2012 17:59:51 +0200 Subject: [PATCH] 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 --- tests/with-pic.at | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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} -- 2.47.3