From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sandbox:master commit in: /
Date: Thu, 16 Feb 2023 22:59:10 +0000 (UTC) [thread overview]
Message-ID: <1676588343.190300def3160ca39bd8590d1bbc7305ae07cc5b.sam@gentoo> (raw)
commit: 190300def3160ca39bd8590d1bbc7305ae07cc5b
Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Sat Jan 21 16:36:05 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Feb 16 22:59:03 2023 +0000
URL: https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=190300de
build: Fix libc path configure test for mold
bfd, gold, lld, and mold all support `-Wl,--trace`, which has cleaner
output than `-Wl,--verbose`. mold doesn't output anything with the
latter, so the test didn't support that until now. The only difference
between them now is that mold prefixes its output with `trace: ` whereas
the others do not.
I checked the Solaris linker, but that does not support `-Wl,--trace`.
Bug: https://bugs.gentoo.org/830463
Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
Closes: https://github.com/gentoo/sandbox/pull/5
Signed-off-by: Sam James <sam <AT> gentoo.org>
configure.ac | 15 +++++----------
1 file changed, 5 insertions(+), 10 deletions(-)
diff --git a/configure.ac b/configure.ac
index 698051f..a2a0355 100644
--- a/configure.ac
+++ b/configure.ac
@@ -352,16 +352,11 @@ try_link() {
) 1>&AS_MESSAGE_LOG_FD
}
LIBC_PATH=$(AS_IF(
- dnl GNU linker (bfd & gold) searching for
- dnl (bfd) "attempt to open /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../lib64/libc.so succeeded"
- dnl (gold) "/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: Attempt to open /lib64/libc.so.6 succeeded"
- dnl if log does not contain "attempt" word then it's not a GNU linker
- [try_link -Wl,--verbose && grep -q '[[Aa]]ttempt' libctest.log],
- [$AWK '/[[Aa]]ttempt to open/ { if (($(NF-1) ~ /\/libc\.so/) && ($NF == "succeeded")) LIBC = $(NF-1); }; END {print LIBC}' libctest.log],
- dnl LLVM lld searching for latest (successful) entry of
- dnl "ld.lld: /usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../lib64/libc.so"
- dnl "ld.lld: /lib64/libc.so.6"
- [try_link -Wl,--verbose],
+ dnl GNU linkers (bfd, gold), LLVM lld, mold - searching for latest entry of:
+ dnl "/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../lib64/libc.so"
+ dnl "/lib64/libc.so.6"
+ dnl Note that mold prefixes output with "trace: " whereas others do not.
+ [try_link -Wl,--trace],
[$EGREP -o '/[[^ ]]*/libc.so.*' libctest.log | tail -n1],
dnl Solaris linker
[try_link -Wl,-m],
next reply other threads:[~2023-02-16 22:59 UTC|newest]
Thread overview: 78+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-16 22:59 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-03-24 15:56 [gentoo-commits] proj/sandbox:master commit in: / Mike Gilbert
2025-02-23 20:11 Mike Gilbert
2025-02-22 19:55 Mike Gilbert
2025-01-19 21:21 Mike Gilbert
2025-01-17 21:27 Mike Gilbert
2025-01-17 21:08 Mike Gilbert
2025-01-17 18:35 Mike Gilbert
2025-01-17 18:28 Mike Gilbert
2025-01-17 17:58 Mike Gilbert
2025-01-08 2:12 [gentoo-commits] proj/sandbox:stable-2.x " Mike Gilbert
2025-01-14 4:38 ` [gentoo-commits] proj/sandbox:master " Mike Gilbert
2024-12-22 19:19 [gentoo-commits] proj/sandbox:stable-2.x " Mike Gilbert
2025-01-14 4:38 ` [gentoo-commits] proj/sandbox:master " Mike Gilbert
2024-12-22 3:49 [gentoo-commits] proj/sandbox:stable-2.x " Mike Gilbert
2025-01-14 4:38 ` [gentoo-commits] proj/sandbox:master " Mike Gilbert
2024-11-04 19:27 [gentoo-commits] proj/sandbox:stable-2.x " Mike Gilbert
2025-01-14 4:38 ` [gentoo-commits] proj/sandbox:master " Mike Gilbert
2024-05-04 12:03 Sam James
2023-08-05 4:32 Sam James
2023-08-05 4:32 Sam James
2023-06-23 17:25 Mike Gilbert
2021-11-06 3:51 Mike Frysinger
2021-11-06 3:51 Mike Frysinger
2021-11-03 6:59 Mike Frysinger
2021-11-03 0:34 Mike Frysinger
2021-11-03 0:34 Mike Frysinger
2021-10-28 7:38 Mike Frysinger
2021-10-24 4:16 Mike Frysinger
2021-10-22 17:49 Mike Frysinger
2021-10-22 2:48 Mike Frysinger
2021-10-21 20:37 Mike Frysinger
2021-10-21 7:57 Mike Frysinger
2021-10-21 6:10 Michał Górny
2021-10-18 8:48 Mike Frysinger
2021-10-18 8:48 Mike Frysinger
2021-09-07 15:58 Michał Górny
2021-05-04 22:13 Sergei Trofimovich
2021-05-04 8:00 Sergei Trofimovich
2021-04-10 20:17 Sergei Trofimovich
2021-03-27 11:45 Sergei Trofimovich
2021-03-27 11:45 Sergei Trofimovich
2021-03-11 9:08 Michał Górny
2021-03-11 8:04 Sergei Trofimovich
2020-05-31 10:52 Michał Górny
2020-02-28 7:00 Michał Górny
2019-07-12 6:47 Sergei Trofimovich
2019-03-13 10:12 Andreas K. Hüttel
2019-03-13 10:12 Andreas K. Hüttel
2019-03-11 12:48 Andreas K. Hüttel
2019-03-09 19:21 Sergei Trofimovich
2019-01-13 11:39 Michał Górny
2019-01-09 13:45 Michał Górny
2018-12-02 15:28 Michał Górny
2017-10-03 21:24 Michał Górny
2016-03-29 12:24 Mike Frysinger
2015-12-20 21:12 Mike Frysinger
2015-12-20 8:41 Mike Frysinger
2015-12-20 8:41 Mike Frysinger
2015-12-19 18:10 Mike Frysinger
2015-09-27 6:30 Mike Frysinger
2015-09-27 6:30 Mike Frysinger
2015-09-20 8:16 Mike Frysinger
2015-09-20 8:15 Mike Frysinger
2015-09-20 8:15 Mike Frysinger
2015-09-20 8:15 Mike Frysinger
2015-09-20 8:15 Mike Frysinger
2015-09-11 7:53 Mike Frysinger
2012-11-26 10:10 Mike Frysinger
2012-11-17 19:16 Mike Frysinger
2012-11-17 19:16 Mike Frysinger
2012-11-17 19:16 Mike Frysinger
2012-07-03 19:42 Mike Frysinger
2012-07-03 19:41 Mike Frysinger
2012-06-23 23:12 Mike Frysinger
2012-06-23 21:36 Mike Frysinger
2012-06-23 21:36 Mike Frysinger
2012-03-06 5:17 Mike Frysinger
2012-03-05 7:01 Mike Frysinger
2011-02-14 6:19 Mike Frysinger
2011-02-14 6:19 Mike Frysinger
2011-02-14 6:19 Mike Frysinger
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1676588343.190300def3160ca39bd8590d1bbc7305ae07cc5b.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox