[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: libtool: Use $LD when checking for --whole-archiv
From: |
Mike Frysinger |
Subject: |
branch master updated: libtool: Use $LD when checking for --whole-archive |
Date: |
Tue, 16 Jan 2024 15:32:48 -0500 |
This is an automated email from the git hooks/post-receive script.
vapier pushed a commit to branch master
in repository libtool.
The following commit(s) were added to refs/heads/master by this push:
new f81f36e4 libtool: Use $LD when checking for --whole-archive
f81f36e4 is described below
commit f81f36e4e9f9e4e5a8b827dd831393d5867b244f
Author: Raul E Rangel <rrangel@chromium.org>
AuthorDate: Wed Dec 13 09:44:57 2023 -0700
libtool: Use $LD when checking for --whole-archive
Using `$CC -print-prog-name=ld` will always use the `ld` linker. We
should instead be using the $LD variable so that we use the proper
linker.
There is already another part of the code that does this same check,
so I just copy/pasted the if line.
* m4/libtool.m4: Change `$CC -print-prog-name=ld` to $LD.
Url: https://savannah.gnu.org/support/?110978
Signed-off-by: Raul E Rangel <rrangel@chromium.org>
---
m4/libtool.m4 | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/m4/libtool.m4 b/m4/libtool.m4
index 83c33d35..4b84ce96 100644
--- a/m4/libtool.m4
+++ b/m4/libtool.m4
@@ -6427,8 +6427,7 @@ if test yes != "$_lt_caught_CXX_error"; then
wlarc='$wl'
# ancient GNU ld didn't support --whole-archive et. al.
- if eval "`$CC -print-prog-name=ld` --help 2>&1" |
- $GREP 'no-whole-archive' > /dev/null; then
+ if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
_LT_TAGVAR(whole_archive_flag_spec,
$1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
else
_LT_TAGVAR(whole_archive_flag_spec, $1)=
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: libtool: Use $LD when checking for --whole-archive,
Mike Frysinger <=