Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/slibtool/
Date: Sat, 07 May 2022 18:24:39
Message-Id: 1651947784.0fa7d95ca750542c919b710247e81b05b27b56c1.sam@gentoo
1 commit: 0fa7d95ca750542c919b710247e81b05b27b56c1
2 Author: orbea <orbea <AT> riseup <DOT> net>
3 AuthorDate: Sat May 7 18:14:15 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sat May 7 18:23:04 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fa7d95c
7
8 sys-devel/slibtool: Fix build with self-hosted clang
9
10 When building slibtool with a self-hosted clang as documented on the
11 gentoo wiki the build will fail with many undefined references.
12
13 The problem is because the ebuild has neglected to use --libdir and
14 the sofort build system will then append -L/usr/lib instead of the
15 correct -L/usr/lib64.
16
17 Reference: https://wiki.gentoo.org/wiki/Clang#Bootstrapping_the_Clang_toolchain
18
19 Signed-off-by: orbea <orbea <AT> riseup.net>
20 Closes: https://github.com/gentoo/gentoo/pull/25373
21 Signed-off-by: Sam James <sam <AT> gentoo.org>
22
23 sys-devel/slibtool/slibtool-0.5.34.ebuild | 1 +
24 sys-devel/slibtool/slibtool-9999.ebuild | 1 +
25 2 files changed, 2 insertions(+)
26
27 diff --git a/sys-devel/slibtool/slibtool-0.5.34.ebuild b/sys-devel/slibtool/slibtool-0.5.34.ebuild
28 index a25f2ba8e597..c176e886d89c 100644
29 --- a/sys-devel/slibtool/slibtool-0.5.34.ebuild
30 +++ b/sys-devel/slibtool/slibtool-0.5.34.ebuild
31 @@ -32,5 +32,6 @@ src_configure() {
32 --compiler="$(tc-getCC)" \
33 --host=${CHOST} \
34 --prefix="${EPREFIX}"/usr \
35 + --libdir="$(get_libdir)" \
36 || die
37 }
38
39 diff --git a/sys-devel/slibtool/slibtool-9999.ebuild b/sys-devel/slibtool/slibtool-9999.ebuild
40 index 632175369588..200a19a514d4 100644
41 --- a/sys-devel/slibtool/slibtool-9999.ebuild
42 +++ b/sys-devel/slibtool/slibtool-9999.ebuild
43 @@ -32,5 +32,6 @@ src_configure() {
44 --compiler="$(tc-getCC)" \
45 --host=${CHOST} \
46 --prefix="${EPREFIX}"/usr \
47 + --libdir="$(get_libdir)" \
48 || die
49 }