aboutsummaryrefslogtreecommitdiff
path: root/system/nvidia-legacy390-driver
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2020-12-07 19:59:53 +0100
committerRobby Workman <rworkman@slackbuilds.org>2021-04-17 23:45:05 -0500
commit22a8481c4b1a8eba3ca2800d7c1bf3459fe38d7c (patch)
tree006394e1d19d6079de145ccd06f97f5e242b0e68 /system/nvidia-legacy390-driver
parent9953be387c92c1dceff7cf4898c0563b998b091b (diff)
system/nvidia-legacy390-driver: Use libtirpc, no libGL.la.
Pass -fcommon for gcc >= 10.x Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/nvidia-legacy390-driver')
-rw-r--r--system/nvidia-legacy390-driver/nvidia-legacy390-driver.SlackBuild2
-rw-r--r--system/nvidia-legacy390-driver/nvidia-switch2
2 files changed, 1 insertions, 3 deletions
diff --git a/system/nvidia-legacy390-driver/nvidia-legacy390-driver.SlackBuild b/system/nvidia-legacy390-driver/nvidia-legacy390-driver.SlackBuild
index b984a3258053b..5e7b6ea665f0e 100644
--- a/system/nvidia-legacy390-driver/nvidia-legacy390-driver.SlackBuild
+++ b/system/nvidia-legacy390-driver/nvidia-legacy390-driver.SlackBuild
@@ -373,7 +373,7 @@ if [ "${PERSISTENCED:-no}" = "yes" ]; then
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
- CFLAGS="$SLKCFLAGS" make
+ CFLAGS="$SLKCFLAGS -I/usr/include/tirpc -Wl,-ltirpc" make
install -m 755 _out/Linux_$TARGET/nvidia-persistenced $PKG/usr/bin/
install -m 644 _out/Linux_$TARGET/nvidia-persistenced.1.gz $PKG/usr/man/man1/
diff --git a/system/nvidia-legacy390-driver/nvidia-switch b/system/nvidia-legacy390-driver/nvidia-switch
index 2f57366cfdbb2..5ea8a5c1c8c64 100644
--- a/system/nvidia-legacy390-driver/nvidia-switch
+++ b/system/nvidia-legacy390-driver/nvidia-switch
@@ -67,11 +67,9 @@ save_GL(){
if [ "$GLVND" = "yes" ]; then
mv libGL.so.$GL_VERSION $SAVELIBS
- mv libGL.la $SAVELIBS
mv libEGL.so.1.?.0 $SAVELIBS
mv libGLESv1_CM.so.1.1.0 $SAVELIBS
mv libGLESv2.so.2.0.0 $SAVELIBS
- mv libGL.la-nvidia libGL.la
ln -sf libGL.so.1.7.0-nvidia libGL.so.1
ln -sf libGL.so.1 libGL.so
ln -sf libEGL.so.1.1.0-nvidia libEGL.so.1.1.0