]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
tests: skip the with-pic test only if DLL_EXPORT is defined
authorPeter Rosin <peda@lysator.liu.se>
Mon, 8 Oct 2012 15:59:51 +0000 (17:59 +0200)
committerPeter Rosin <peda@lysator.liu.se>
Mon, 8 Oct 2012 15:59:51 +0000 (17:59 +0200)
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 <peda@lysator.liu.se>
tests/with-pic.at

index 2ffbd03456f2ca3957da52537e8c97f2b88adf77..8739f200351eed4b3c5824ebd61846dba208c2de 100644 (file)
@@ -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}