]> git.cworth.org Git - fips/commit
Respect GLAZE_LIBGL environment variable (if FIPS_LIBGL is unset)
authorCarl Worth <cworth@cworth.org>
Tue, 22 Oct 2013 19:19:37 +0000 (12:19 -0700)
committerCarl Worth <cworth@cworth.org>
Tue, 22 Oct 2013 20:00:48 +0000 (13:00 -0700)
commita19c938ab14709674bcadfcc9d6ccdee136d45bb
tree033c023e85682471a4bd24f8c41fd9c0060d7ff5
parent89d08b1a163772b49a52e5a1142363d9d0de7c60
Respect GLAZE_LIBGL environment variable (if FIPS_LIBGL is unset)

Since the LD_PRELOAD mechanism of fips may not work with some
programs, users may want to run fips within glaze instead, (which uses
LD_LIBRARY_PATH instead of LD_PRELOAD). In order to make this
convenient, fips can recognize that glaze has identified the
appropriate libGL.so library by examining the GLAZE_LIBGL environment
variable.

So, if the user has not specifically set the FIPS_LIBGL variable, and
the GLAZE_LIBGL variable is set, use it to find the libGL.so to load.
glwrap.c