mirror of
https://https.git.savannah.gnu.org/git/libtool.git
synced 2026-01-27 01:44:28 +00:00
libtool.at: Fix failures for 'test silencing warnings'
Replace 'g++' with variable '$CXX' and add version number for flag '-version-info'.
This commit is contained in:
parent
5335d4cfbf
commit
bbc5fa9456
@ -251,9 +251,9 @@ AT_DATA([x.cpp],
|
||||
void f(int *p) { *p = 21; }
|
||||
]])
|
||||
|
||||
AT_CHECK([$LIBTOOL --mode=compile --tag=CXX g++ -c x.cpp], [0], [stdout], [stderr])
|
||||
AT_CHECK([$LIBTOOL --mode=compile --tag=CXX $CXX -c x.cpp], [0], [stdout], [stderr])
|
||||
|
||||
AT_CHECK([$LIBTOOL --no-warnings --mode=link --tag=CXX g++ -o libx.la -no-canonical-prefixes -R /usr/lib64/ -version-info x.lo], [0], [stdout], [stderr])
|
||||
AT_CHECK([$LIBTOOL --no-warnings --mode=link --tag=CXX $CXX -o libx.la -no-canonical-prefixes -R /usr/lib64/ -version-info 0:0:0 x.lo], [0], [stdout], [stderr])
|
||||
|
||||
AT_CHECK([$GREP -- 'warning' stderr], [1], [ignore])
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user