gl-select: added libGL.so and libGLcore.so symlink checks for nvidia versioning weirdness
This commit is contained in:
parent
28d896cfe1
commit
9a0a5c64f8
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
name=gl-select
|
name=gl-select
|
||||||
version=1.0
|
version=1.0
|
||||||
release=1
|
release=2
|
||||||
source=($name)
|
source=($name)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
@ -87,6 +87,12 @@ case "$1" in
|
|||||||
mv /usr/X11R6/lib/libGL{.so.1.2,_so_1_2}
|
mv /usr/X11R6/lib/libGL{.so.1.2,_so_1_2}
|
||||||
mv /usr/X11R6/lib/libGL{.a,_a}
|
mv /usr/X11R6/lib/libGL{.a,_a}
|
||||||
rm /usr/X11R6/lib/libGL.so*
|
rm /usr/X11R6/lib/libGL.so*
|
||||||
|
# nvidia's library versioning prevents ldconfig from creating
|
||||||
|
# libGL.so and libGLcore.so
|
||||||
|
[ ! -L /usr/lib/libGL.so ] && \
|
||||||
|
ln -sf libGL.so.1.0.$NV_VER /usr/lib/libGL.so
|
||||||
|
[ ! -L /usr/lib/libGLcore.so ] && \
|
||||||
|
ln -sf libGLcore.so.1.0.$NV_VER /usr/lib/libGLcore.so
|
||||||
else
|
else
|
||||||
echo "You appear to already be using a non-x11 gl/glx setup. If the"
|
echo "You appear to already be using a non-x11 gl/glx setup. If the"
|
||||||
echo "one selected isn't the correct one, revert to x11 and then select"
|
echo "one selected isn't the correct one, revert to x11 and then select"
|
||||||
@ -100,6 +106,7 @@ case "$1" in
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
/sbin/ldconfig > /dev/null 2>&1
|
/sbin/ldconfig > /dev/null 2>&1
|
||||||
|
|
||||||
echo "done."
|
echo "done."
|
||||||
|
|
||||||
# End of file
|
# End of file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user