From 71b83d8f4f3417eb5e199805f7e8ebdba07e3ee3 Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 20 Jan 2026 11:42:05 +0100 Subject: [PATCH] makepanda: Add /usr/local/lib64 to searched library paths [skip ci] --- makepanda/makepandacore.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/makepanda/makepandacore.py b/makepanda/makepandacore.py index cfc19fb1ad..a34603691f 100644 --- a/makepanda/makepandacore.py +++ b/makepanda/makepandacore.py @@ -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