2
0
mirror of git://git.savannah.gnu.org/libtool.git synced 2024-12-15 06:49:57 +08:00

tests: avoid spurious pic_flag test failure on HP-UX 10.20.

* tests/pic_flag.at (override pic_flag at configure time):
Match HP-UX 10.20 cc warning about unknown options, to skip
the test.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
This commit is contained in:
Ralf Wildenhues 2010-09-01 22:24:37 +02:00
parent e350fb0744
commit 786befce76
2 changed files with 6 additions and 0 deletions

View File

@ -1,5 +1,10 @@
2010-09-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
tests: avoid spurious pic_flag test failure on HP-UX 10.20.
* tests/pic_flag.at (override pic_flag at configure time):
Match HP-UX 10.20 cc warning about unknown options, to skip
the test.
tests: fix localization test for GCC on HP-UX 11.00.
* tests/localization.at (localized compiler messages): Be sure
to switch the locale only for the actual compiler commands, so

View File

@ -37,6 +37,7 @@ AT_CHECK([$CC $CPPFLAGS $CFLAGS $C_pic_flag -c foo.c || exit 77],
[], [stdout], [stderr])
# The configure test for the PIC flag also checks for warnings.
AT_CHECK([grep fpic stdout stderr && exit 77], [1])
AT_CHECK([[grep '[uU]nknown.*option' stdout stderr && exit 77]], [1])
CXX_pic_flag='-fpic -DPIC'
if $CXX $CPPFLAGS $CXXFLAGS $CXX_pic_flag -c foo.cpp; then :; else