Use " instead of ' to quote package names when invoking pkg-config.

Since ' breaks on windows.
This commit is contained in:
Sergey Popov 2009-03-25 15:06:14 +00:00
parent 760f12f165
commit e723064d2c

2
scons/pkgconfig.py Normal file → Executable file
View file

@ -5,7 +5,7 @@ import os
def run_pkg_config(env, name):
try:
env["ENV"]["PKG_CONFIG_PATH"] = os.environ.get("PKG_CONFIG_PATH")
env.ParseConfig("pkg-config --libs --cflags $PKGCONFIG_FLAGS '" + name + "'")
env.ParseConfig("pkg-config --libs --cflags $PKGCONFIG_FLAGS \"" + name + "\"")
return True
except OSError:
return False