mirror of
git://git.savannah.gnu.org/libtool.git
synced 2025-01-30 14:30:15 +08:00
tests: skip with-pic test when no "real" pic flag is used.
* tests/with-pic.at: Windows uses "-DDLL_EXPORT -DPIC" as the pic "flag", but never applies it to static libraries. Cater for this and skip if no "real" pic flag is in use. Signed-off-by: Peter Rosin <peda@lysator.liu.se>
This commit is contained in:
parent
0fc275469e
commit
4440d6523b
@ -24,7 +24,11 @@
|
|||||||
AT_SETUP([test --with-pic])
|
AT_SETUP([test --with-pic])
|
||||||
eval `$LIBTOOL --config | $EGREP '^(pic_flag|FGREP)='`
|
eval `$LIBTOOL --config | $EGREP '^(pic_flag|FGREP)='`
|
||||||
|
|
||||||
AT_CHECK([test -n "$pic_flag" || exit 77])
|
real_pic=false
|
||||||
|
case " $pic_flag " in
|
||||||
|
[*" "[^" "-]* | *" "-[^D]*]) real_pic=: ;;
|
||||||
|
esac
|
||||||
|
AT_CHECK([$real_pic || exit 77])
|
||||||
AT_CHECK([test . != "$at_srcdir" || exit 77])
|
AT_CHECK([test . != "$at_srcdir" || exit 77])
|
||||||
|
|
||||||
CONFIGURE=$abs_top_srcdir/tests/demo/configure
|
CONFIGURE=$abs_top_srcdir/tests/demo/configure
|
||||||
|
Loading…
Reference in New Issue
Block a user