mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-19 00:15:30 +00:00
BUILD: Use unmodified SAVED_LDFLAGS from env for linking plugins.
In commit dce6b012 we added the LDFLAGS, which were modified by the configure script, to the linker stage of the plugins. Doing so turns out not to work well for all system architectures. This approach uses the unmodified LDFLAGS, stored in the SAVED_LDFLAGS variable by the configure script, from the system environment for linking dynamic plugins, which is very likely not to cause any harm.
This commit is contained in:
parent
b19df6cb60
commit
0974f168b2
2
rules.mk
2
rules.mk
@ -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) $(SAVED_LDFLAGS) $(filter-out $(PLUGIN_EXTRA_DEPS),$+) $(PLUGIN_LDFLAGS) -o $@
|
||||
|
||||
# Reset PLUGIN var
|
||||
PLUGIN:=
|
||||
|
Loading…
x
Reference in New Issue
Block a user