generated from gnu-ci-templates/ci-check
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[windows] Test 0001-libtool-Fix-test-170-in-Cygwin-Mingw32.patch
- Loading branch information
1 parent
65536ed
commit a42b937
Showing
2 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
From e3f762e59adb871b6b697e42c22f35bb64605332 Mon Sep 17 00:00:00 2001 | ||
From: Ileana Dumitrescu <ileanadumitrescu95@gmail.com> | ||
Date: Fri, 9 Aug 2024 18:39:45 +0300 | ||
Subject: [PATCH] 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]) | ||
|
||
-- | ||
2.45.2 | ||
|