aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2020-07-23 21:49:28 +0200
committerThomas Deutschmann <whissi@gentoo.org>2020-07-23 21:49:28 +0200
commit9293b49303dac0a18294cba3d5dcec74154ca392 (patch)
tree6556ddff4238f8e78c66266fc0d1189c8eaadfe5 /gkbuilds
parentlibgcrypt: Fix libgcrypt-config wrapper (diff)
downloadgenkernel-9293b49303dac0a18294cba3d5dcec74154ca392.tar.gz
genkernel-9293b49303dac0a18294cba3d5dcec74154ca392.tar.bz2
genkernel-9293b49303dac0a18294cba3d5dcec74154ca392.zip
kmod: remove hardcoded $BROOT value
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
Diffstat (limited to 'gkbuilds')
-rw-r--r--gkbuilds/kmod.gkbuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/gkbuilds/kmod.gkbuild b/gkbuilds/kmod.gkbuild
index 6bdc0c4..44a2df3 100644
--- a/gkbuilds/kmod.gkbuild
+++ b/gkbuilds/kmod.gkbuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
src_prepare() {
@@ -25,6 +25,12 @@ src_configure() {
src_install() {
default
+ # remove hardcoded $BROOT
+ sed -i \
+ -e 's/-L\/[^ ]*/-L${libdir}/' \
+ "${D}"/usr/lib*/pkgconfig/*.pc \
+ || die
+
rm -rf \
"${D}"/usr/share/
}