Commit ad1e9416 authored by David Fuhrmann's avatar David Fuhrmann

freetype: Fix compilation on macOS

Usually, the per-target _LINK variable is autogenerated, taking
into account used languages based on file extension, and also
per-target _LDFLAGS. Due to #17827, _LINK for this module is
explicitly overridden, and therefore the per-target _LDFLAGS are not
respected, which leads to compilation failure.

This is a quick fix to make macOS compile again. The problem
affects all platforms however, and a better solution shall be found
later.
parent b22fa70e
......@@ -34,7 +34,7 @@ libfreetype_plugin_la_SOURCES += text_renderer/freetype/fonts/android.c
endif
if HAVE_DARWIN
libfreetype_plugin_la_SOURCES += text_renderer/freetype/fonts/darwin.c
libfreetype_plugin_la_LDFLAGS += -Wl,-framework,CoreFoundation -Wl,-framework,CoreText
libfreetype_plugin_la_LINK += -Wl,-framework,CoreFoundation -Wl,-framework,CoreText
endif
if HAVE_FRIBIDI
libfreetype_plugin_la_CPPFLAGS += $(FRIBIDI_CFLAGS) -DHAVE_FRIBIDI
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment