Detect if libraries are installed in lib and/or lib64 directories for appending to LD_LIBRARY_PATH.
--- a/bake/ModuleEnvironment.py Wed Oct 03 07:34:21 2018 -0700
+++ b/bake/ModuleEnvironment.py Thu Nov 08 11:19:05 2018 -0800
@@ -376,8 +376,11 @@
"fi \n\n"
self._binpaths.add(self._bin_path())
- self._libpaths.add(self._lib_path())
-
+ if os.path.isdir(self._lib_path()):
+ self._libpaths.add(self._lib_path())
+ if os.path.isdir(self._lib_path()+'64'):
+ self._libpaths.add(self._lib_path()+'64')
+
if len(self._libpaths) > 0:
script = script + self.add_onPath("LD_LIBRARY_PATH", self._libpaths) + "\n"