summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2016-11-11 10:39:57 +0100
committerJeroen Roovers <jer@gentoo.org>2016-11-11 10:41:20 +0100
commit38279d34de57f768e1bcc79a264f5b096059e734 (patch)
treeaee283087224ee98b882d91398e42487184d3539 /x11-drivers
parentdev-lang/php: x86 stable wrt bug #599326 (diff)
downloadgentoo-38279d34de57f768e1bcc79a264f5b096059e734.tar.gz
gentoo-38279d34de57f768e1bcc79a264f5b096059e734.tar.bz2
gentoo-38279d34de57f768e1bcc79a264f5b096059e734.zip
x11-drivers/nvidia-drivers: Set up libnvidia-ml.so symlinks (bug #598874).
Package-Manager: portage-2.3.2
Diffstat (limited to 'x11-drivers')
-rw-r--r--x11-drivers/nvidia-drivers/nvidia-drivers-375.10-r1.ebuild10
1 files changed, 9 insertions, 1 deletions
diff --git a/x11-drivers/nvidia-drivers/nvidia-drivers-375.10-r1.ebuild b/x11-drivers/nvidia-drivers/nvidia-drivers-375.10-r1.ebuild
index 7c86eb1c7928..7dbd015870cf 100644
--- a/x11-drivers/nvidia-drivers/nvidia-drivers-375.10-r1.ebuild
+++ b/x11-drivers/nvidia-drivers/nvidia-drivers-375.10-r1.ebuild
@@ -175,7 +175,15 @@ pkg_setup() {
src_prepare() {
if use tools; then
cp "${DISTDIR}"/nvml.h-${PV} "${S}"/nvidia-settings-${PV}/src/nvml.h || die
- sed -i -e 's|-lnvidia-ml|-L../../ &|g' nvidia-settings-${PV}/src/Makefile || die
+
+ ln -s libnvidia-ml.so.${PV} libnvidia-ml.so || die
+ if use multilib; then
+ pushd 32/ 2>/dev/null || die
+ ln -s libnvidia-ml.so.${PV} libnvidia-ml.so || die
+ popd 2>/dev/null || die
+ fi
+
+ sed -i -e "s|-lnvidia-ml|-L../../ &|g" nvidia-settings-${PV}/src/Makefile || die
fi
eapply "${FILESDIR}"/${P}-profiles-rc.patch