[vlc-devel] [PATCH] freetype: Fix compilation on macOS
david.fuhrmann at gmail.com
Sat May 19 14:44:52 CEST 2018
> Am 19.05.2018 um 14:31 schrieb Rémi Denis-Courmont <remi at remlab.net>:
> Le lauantaina 19. toukokuuta 2018, 14.21.24 EEST david.fuhrmann at gmail.com a
> écrit :
>> From: David Fuhrmann <dfuhrmann at videolan.org>
>> 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.
> That problem is not specific to macOS.
I agree with that.
Apparently, all the other platforms use libfreetype_plugin_la_LIBADD to declare their dependent libraries to link against. This variable is still added to the final linker line, even if _LINK is overwritten. Thats why it works for the other platforms.
However, declaring the macOS frameworks in _LIBADD is not possible, as it is explicitly forbidden by automake. If you try that, it errors out and tells you to use _LDFLAGS instead.
More information about the vlc-devel