mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
makepanda: specify freetype library after harfbuzz as well
This fixes static linking of harfbuzz and freetype, which have a circular dependency on each other.
This commit is contained in:
parent
92476a3788
commit
1cfd297433
@ -948,6 +948,13 @@ if (COMPILER=="GCC"):
|
||||
SmartPkgEnable("JPEG", "", ("jpeg"), "jpeglib.h")
|
||||
SmartPkgEnable("PNG", "libpng", ("png"), "png.h", tool = "libpng-config")
|
||||
|
||||
# Copy freetype libraries to be specified after harfbuzz libraries as well,
|
||||
# because there's a circular dependency between the two libraries.
|
||||
if not PkgSkip("FREETYPE") and not PkgSkip("HARFBUZZ"):
|
||||
for (opt, name) in LIBNAMES:
|
||||
if opt == "FREETYPE":
|
||||
LibName("HARFBUZZ", name)
|
||||
|
||||
if not PkgSkip("FFMPEG"):
|
||||
if GetTarget() == "darwin":
|
||||
LibName("FFMPEG", "-Wl,-read_only_relocs,suppress")
|
||||
|
Loading…
x
Reference in New Issue
Block a user