makepanda: Add /usr/local/lib64 to searched library paths

[skip ci]
This commit is contained in:
rdb 2026-01-20 11:42:05 +01:00
parent 2587247868
commit 71b83d8f4f
1 changed files with 7 additions and 0 deletions

View File

@ -3031,6 +3031,13 @@ def SetupBuildEnvironment(compiler):
libdir += '64'
SYS_LIB_DIRS += [libdir]
if sys.platform != "darwin":
# Some Linux distributions (eg. Fedora) don't add /usr/local/lib64
if ("/usr/lib64" in SYS_LIB_DIRS and
"/usr/local/lib64" not in SYS_LIB_DIRS and
os.path.isdir("/usr/local/lib64")):
SYS_LIB_DIRS.append("/usr/local/lib64")
# Now extract the preprocessor's include directories.
cmd = GetCXX() + " -x c++ -v -E " + os.devnull
cmd += sysroot_flag