summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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