fdc95482c3
LD_LIBMAP can be limited to Wayland or KMS console e.g., $ cat >>~/.zshrc if [[ ( -n $WAYLAND_DISPLAY || -z $DISPLAY ) && $LD_LIBMAP != *GLEW-wayland* ]]; then export LD_LIBMAP=libGLEW.so.2=libGLEW-wayland.so.2,$LD_LIBMAP export SDL_VIDEODRIVER=wayland,kmsdrm,x11 fi
14 lines
320 B
Text
14 lines
320 B
Text
[
|
|
{ type: install
|
|
message: <<EOM
|
|
To enable Wayland support in GLEW for a specific application
|
|
$ LD_PRELOAD=libGLEW-wayland.so <application>
|
|
|
|
To enable for current session
|
|
$ export LD_LIBMAP=libGLEW.so.2=libGLEW-wayland.so.2
|
|
|
|
To enable globally
|
|
$ echo libGLEW.so.2 libGLEW-wayland.so.2 >>/etc/libmap.conf
|
|
EOM
|
|
}
|
|
]
|