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 []
|
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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user