[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Ileana Dumitrescu |
Date: |
Tue, 27 Aug 2024 11:33:34 -0400 (EDT) |
branch: master
commit fcaa75e5dc07b8e593c7fa12afb675ea1cbfe522
Author: Ileana Dumitrescu <ileanadumitrescu95@gmail.com>
AuthorDate: Fri Aug 9 18:39:45 2024 +0300
libtool: Fix test 170 in Cygwin/Mingw32
Test 170 in bug_62343.at is failing to link object files with a library
file. This is fixed by choosing the correct architecture version of a
compiler by using the 'CXX' macro.
tests/bug_62343.at: Replace 'g++' with 'CXX' macro
---
tests/bug_62343.at | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tests/bug_62343.at b/tests/bug_62343.at
index 75ceafd3..6aab18f5 100644
--- a/tests/bug_62343.at
+++ b/tests/bug_62343.at
@@ -42,7 +42,7 @@ int main() {
# So first try to compile without libtool first to test if the current
environment
# supports the -no-canonical-prefixes flag. If it doesn't, skip the test.
-g++ -no-canonical-prefixes -c x.cpp
+$CXX -no-canonical-prefixes -c x.cpp
result=$?
@@ -50,7 +50,7 @@ if test 0 -ne "$result"; then
AT_SKIP_IF([:])
fi
-AT_CHECK([$LIBTOOL --mode=compile --tag=CXX g++ -no-canonical-prefixes -c
x.cpp], [0], [stdout], [stderr])
+AT_CHECK([$LIBTOOL --mode=compile --tag=CXX $CXX -no-canonical-prefixes -c
x.cpp], [0], [stdout], [stderr])
AT_CHECK([$GREP -- '-no-canonical-prefixes' stdout], [0], [ignore])
@@ -63,7 +63,7 @@ case $host_os in
;;
esac
-AT_CHECK([$LIBTOOL --mode=link --tag=CXX g++ -no-canonical-prefixes
$host_flags -o libx.la -rpath /usr/lib64/ x.lo], [0], [stdout], [stderr])
+AT_CHECK([$LIBTOOL --mode=link --tag=CXX $CXX -no-canonical-prefixes
$host_flags -o libx.la -rpath /usr/lib64/ x.lo], [0], [stdout], [stderr])
AT_CHECK([$GREP -- '-no-canonical-prefixes' stdout], [0], [ignore])