b2f3e10a35
Using primusrun will work as expected in a multilib environment. Even if the initial program executes a antoehr program of the another architecture. Assuming the program does not modify LD_LIBRARY_PATH inappropriately. This does not update virtualgl for seemless multilib. I was unable to get a mixed 64/32 bit environment to work with VirtualGL. The mechanism VirtualGL uses to inject the fake GL library would fail if both 32bit and 64 bit libraries were in the environment. Instead the bumblebee package creates a optirun32 executable that can be used to run a 32bit executable with optimus on a 64 bit host. This is not created if the host is 32bit. For my usage, gaming under wine, the primusrun executable works as expected regardless of 32bit/64bit.
13 lines
246 B
Bash
13 lines
246 B
Bash
source $stdenv/setup
|
|
|
|
cp -r $src src
|
|
cd src
|
|
|
|
export LIBDIR=$out/lib
|
|
export PRIMUS_libGLa=$nvidia/lib/libGL.so
|
|
export PRIMUS_libGLd=$mesa/lib/libGL.so
|
|
export PRIMUS_LOAD_GLOBAL=$mesa/lib/libglapi.so
|
|
|
|
make
|
|
ln -s $LIBDIR/libGL.so.1 $LIBDIR/libGL.so
|