I’m not sure this is going to be easy.
Makepanda doesn’t set LD_LIBRARY_PATH permanently. It only sets it for its child processes. Either it’s not really setting it, or it’s setting it and it’s having no effect.
I suppose I’d delete ‘interrogate’ and replace it with a script that prints out LD_LIBRARY_PATH. That will tell you whether or not makepanda is really setting LD_LIBRARY_PATH. The script would look like this:
#!/bin/sh
echo LD_LIBRARY_PATH=$LD_LIBRARY_PATH
exit 1
The ‘exit 1’ is an error code. It will prevent makepanda from going on and on and on.