Browse Source

Prevent the wrong wx-config from getting used

rdb 16 years ago
parent
commit
a7b8734fdf
1 changed files with 1 additions and 0 deletions
  1. 1 0
      makepanda/makepandacore.py

+ 1 - 0
makepanda/makepandacore.py

@@ -1075,6 +1075,7 @@ def SmartPkgEnable(pkg, pkgconfig = None, libs = None, incs = None, defs = None,
         LibDirectory(pkg, GetThirdpartyDir() + pkg.lower() + "/lib")
         LibDirectory(pkg, GetThirdpartyDir() + pkg.lower() + "/lib")
         # TODO: check for a .pc file in the lib/pkg-config/ dir
         # TODO: check for a .pc file in the lib/pkg-config/ dir
         if (tool != None and os.path.isfile(GetThirdpartyDir() + pkg.lower() + "/bin/" + tool)):
         if (tool != None and os.path.isfile(GetThirdpartyDir() + pkg.lower() + "/bin/" + tool)):
+            tool = GetThirdpartyDir() + pkg.lower() + "/bin/" + tool
             for i in PkgConfigGetLibs(pkg.lower(), tool):
             for i in PkgConfigGetLibs(pkg.lower(), tool):
                 LibName(pkg, i)
                 LibName(pkg, i)
             for i, j in PkgConfigGetDefSymbols(pkg.lower(), tool).items():
             for i, j in PkgConfigGetDefSymbols(pkg.lower(), tool).items():