mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
BUILD: Apply LDFLAGS on modules/plugins
Some distributions populate their build environment with special linker flags, e.g. for hardening purposes such as immediate binding and/or read-only relocations. Those flags should be honored when linking dynamic libraries.
This commit is contained in:
committed by
Eugene Sandulenko
parent
3f15ca1c4f
commit
dce6b01258
@@ -47,7 +47,7 @@ ifdef PLUGIN
|
||||
PLUGIN-$(MODULE) := plugins/$(PLUGIN_PREFIX)$(notdir $(MODULE))$(PLUGIN_SUFFIX)
|
||||
$(PLUGIN-$(MODULE)): $(MODULE_OBJS-$(MODULE)) $(PLUGIN_EXTRA_DEPS)
|
||||
$(QUIET)$(MKDIR) plugins
|
||||
$(QUIET_PLUGIN)$(CXX) $(filter-out $(PLUGIN_EXTRA_DEPS),$+) $(PLUGIN_LDFLAGS) -o $@
|
||||
$(QUIET_PLUGIN)$(CXX) $(LDFLAGS) $(filter-out $(PLUGIN_EXTRA_DEPS),$+) $(PLUGIN_LDFLAGS) -o $@
|
||||
|
||||
# Reset PLUGIN var
|
||||
PLUGIN:=
|
||||
|
||||
Reference in New Issue
Block a user