commit:     0fa7d95ca750542c919b710247e81b05b27b56c1
Author:     orbea <orbea <AT> riseup <DOT> net>
AuthorDate: Sat May  7 18:14:15 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat May  7 18:23:04 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fa7d95c

sys-devel/slibtool: Fix build with self-hosted clang

When building slibtool with a self-hosted clang as documented on the
gentoo wiki the build will fail with many undefined references.

The problem is because the ebuild has neglected to use --libdir and
the sofort build system will then append -L/usr/lib instead of the
correct -L/usr/lib64.

Reference: https://wiki.gentoo.org/wiki/Clang#Bootstrapping_the_Clang_toolchain

Signed-off-by: orbea <orbea <AT> riseup.net>
Closes: https://github.com/gentoo/gentoo/pull/25373
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-devel/slibtool/slibtool-0.5.34.ebuild | 1 +
 sys-devel/slibtool/slibtool-9999.ebuild   | 1 +
 2 files changed, 2 insertions(+)

diff --git a/sys-devel/slibtool/slibtool-0.5.34.ebuild 
b/sys-devel/slibtool/slibtool-0.5.34.ebuild
index a25f2ba8e597..c176e886d89c 100644
--- a/sys-devel/slibtool/slibtool-0.5.34.ebuild
+++ b/sys-devel/slibtool/slibtool-0.5.34.ebuild
@@ -32,5 +32,6 @@ src_configure() {
                --compiler="$(tc-getCC)" \
                --host=${CHOST} \
                --prefix="${EPREFIX}"/usr \
+               --libdir="$(get_libdir)" \
                        || die
 }

diff --git a/sys-devel/slibtool/slibtool-9999.ebuild 
b/sys-devel/slibtool/slibtool-9999.ebuild
index 632175369588..200a19a514d4 100644
--- a/sys-devel/slibtool/slibtool-9999.ebuild
+++ b/sys-devel/slibtool/slibtool-9999.ebuild
@@ -32,5 +32,6 @@ src_configure() {
                --compiler="$(tc-getCC)" \
                --host=${CHOST} \
                --prefix="${EPREFIX}"/usr \
+               --libdir="$(get_libdir)" \
                        || die
 }

Reply via email to