fltk-config fix

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

View File

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