mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
system/nvidia-legacy340-driver: Use libtirpc, no libGL.la.
Fix for gcc >= 10.x Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
This commit is contained in:
parent
6fe8f179e0
commit
6c54f82a04
1 changed files with 2 additions and 6 deletions
|
@ -76,7 +76,6 @@ install -m 755 nvidia_drv.so $PKG/usr/lib$LIBDIRSUFFIX/xorg/modules/drivers/
|
|||
install -m 755 libcuda.so.$VERSION $PKG/usr/lib$LIBDIRSUFFIX/
|
||||
install -m 755 libglx.so.$VERSION $PKG/usr/lib$LIBDIRSUFFIX/xorg/modules/extensions/libglx.so.$VERSION-nvidia
|
||||
install -m 755 libGL.so.$VERSION $PKG/usr/lib$LIBDIRSUFFIX/libGL.so.$VERSION-nvidia
|
||||
install -m 755 libGL.la $PKG/usr/lib$LIBDIRSUFFIX/libGL.la-nvidia
|
||||
install -m 755 libEGL.so.$VERSION $PKG/usr/lib$LIBDIRSUFFIX/libEGL.so.$VERSION-nvidia
|
||||
install -m 755 libnvcuvid.so.$VERSION $PKG/usr/lib$LIBDIRSUFFIX/
|
||||
install -m 755 libnvidia-cfg.so.$VERSION $PKG/usr/lib$LIBDIRSUFFIX/
|
||||
|
@ -104,7 +103,6 @@ if [ "$ARCH" = "x86_64" -a "${COMPAT32}" = "yes" ]; then
|
|||
|
||||
install -m 755 32/libcuda.so.$VERSION $PKG/usr/lib/
|
||||
install -m 755 32/libGL.so.$VERSION $PKG/usr/lib/libGL.so.$VERSION-nvidia
|
||||
install -m 755 32/libGL.la $PKG/usr/lib/libGL.la-nvidia
|
||||
install -m 755 32/libEGL.so.$VERSION $PKG/usr/lib/libEGL.so.$VERSION-nvidia
|
||||
install -m 755 32/libnvcuvid.so.$VERSION $PKG/usr/lib/
|
||||
install -m 755 32/libnvidia-compiler.so.$VERSION $PKG/usr/lib/
|
||||
|
@ -182,7 +180,7 @@ cd $TMP/nvidia-settings-$VERSION
|
|||
make
|
||||
cd ../../
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CFLAGS="$SLKCFLAGS -fcommon" \
|
||||
make
|
||||
|
||||
install -m 755 src/_out/Linux_$TARGET/nvidia-settings $PKG/usr/bin/
|
||||
|
@ -234,7 +232,7 @@ cd -
|
|||
\( -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
|
||||
#FIXME: need rc.nvidia-persistenced script
|
||||
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/
|
||||
|
@ -253,8 +251,6 @@ else
|
|||
fi
|
||||
|
||||
# These update placeholders and correct wrong paths
|
||||
sed -i "s|__LIBGL_PATH__|/usr/lib$LIBDIRSUFFIX/|" $PKG/usr/lib$LIBDIRSUFFIX/libGL.la-nvidia
|
||||
sed -i "s|/usr/X11R6/lib|/usr/lib$LIBDIRSUFFIX/|" $PKG/usr/lib$LIBDIRSUFFIX/libGL.la-nvidia
|
||||
sed -i "s|__UTILS_PATH__|/usr/bin|" \
|
||||
$PKG/usr/share/applications/nvidia-settings.desktop
|
||||
sed -i "s|__PIXMAP_PATH__|/usr/share/pixmaps|" \
|
||||
|
|
Loading…
Reference in a new issue