mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
fltk-config fix
This commit is contained in:
parent
83261415be
commit
5b9ad3832c
@ -982,12 +982,15 @@ 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(" "):
|
||||
if l.startswith("-l"):
|
||||
libs.append(l)
|
||||
return libs
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user