fltk-config fix

This commit is contained in:
rdb 2011-03-09 13:16:44 +00:00
parent 83261415be
commit 5b9ad3832c

View File

@ -982,13 +982,16 @@ def PkgConfigGetLibs(pkgname, tool = "pkg-config"):
return []
if (tool == "pkg-config"):
handle = os.popen(LocateBinary("pkg-config") + " --silence-errors --libs-only-l " + pkgname)
elif (tool == "fltk-config"):
handle = os.popen(LocateBinary("fltk-config") + " --ldflags")
else:
handle = os.popen(LocateBinary(tool) + " --libs")
result = handle.read().strip()
handle.close()
libs = []
for l in result.split(" "):
libs.append(l)
if l.startswith("-l"):
libs.append(l)
return libs
def PkgConfigGetIncDirs(pkgname, tool = "pkg-config"):