Added support for dynamic plugins on Dreamcast to the configure script.
svn-id: r39587
This commit is contained in:
parent
c3bac3d851
commit
760133e8ca
2 changed files with 24 additions and 0 deletions
|
@ -6,6 +6,14 @@ ronindir = /usr/local/ronin
|
|||
CC := $(CXX)
|
||||
ASFLAGS := $(CXXFLAGS)
|
||||
|
||||
|
||||
dist : SCUMMVM.BIN plugins plugin_dist
|
||||
|
||||
plugin_dist :
|
||||
for p in plugins/*.plg; do \
|
||||
if [ x'plugins/*.plg' != x"$$p" ]; then sh-elf-strip -g -o "`basename \"$$p\" | LC_CTYPE=C tr '[:lower:]' '[:upper:]'`" "$$p"; fi ; \
|
||||
done
|
||||
|
||||
SCUMMVM.BIN : scummvm.bin
|
||||
scramble $< $@
|
||||
|
||||
|
|
16
configure
vendored
16
configure
vendored
|
@ -1408,6 +1408,22 @@ CXXFLAGS += -DDYNAMIC_MODULES
|
|||
PLUGIN_LDFLAGS := -Wl,--enable-auto-import -shared ./libscummvm.a
|
||||
PRE_OBJS_FLAGS := -Wl,--whole-archive
|
||||
POST_OBJS_FLAGS := -Wl,--export-all-symbols -Wl,--no-whole-archive -Wl,--out-implib,./libscummvm.a
|
||||
'
|
||||
;;
|
||||
dreamcast)
|
||||
_def_plugin='
|
||||
#define PLUGIN_PREFIX ""
|
||||
#define PLUGIN_SUFFIX ".plg"
|
||||
'
|
||||
_mak_plugins='
|
||||
DYNAMIC_MODULES := 1
|
||||
PLUGIN_PREFIX :=
|
||||
PLUGIN_SUFFIX := .plg
|
||||
PLUGIN_EXTRA_DEPS = $(srcdir)/backends/platform/dc/plugin.x $(srcdir)/backends/platform/dc/plugin.syms $(EXECUTABLE)
|
||||
CXXFLAGS += -DDYNAMIC_MODULES
|
||||
PLUGIN_LDFLAGS = -ml -m4-single-only -nostartfiles -Wl,-q,-T$(srcdir)/backends/platform/dc/plugin.x,--just-symbols,$(EXECUTABLE),--retain-symbols-file,$(srcdir)/backends/platform/dc/plugin.syms -L$(ronindir)/lib
|
||||
PRE_OBJS_FLAGS := -Wl,--whole-archive
|
||||
POST_OBJS_FLAGS := -Wl,--no-whole-archive
|
||||
'
|
||||
;;
|
||||
*)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue