aboutsummaryrefslogtreecommitdiff
path: root/Makefile.common
diff options
context:
space:
mode:
authorAndre Heider2010-09-15 07:44:08 +0000
committerAndre Heider2010-09-15 07:44:08 +0000
commit2596143e2bc42f5958e446ba6c156402ee1a8d53 (patch)
tree27838a251050826a5a59574f2064f70365900c1f /Makefile.common
parent76ca653972f5513d46c00889b57c7a13e41859a9 (diff)
downloadscummvm-rg350-2596143e2bc42f5958e446ba6c156402ee1a8d53.tar.gz
scummvm-rg350-2596143e2bc42f5958e446ba6c156402ee1a8d53.tar.bz2
scummvm-rg350-2596143e2bc42f5958e446ba6c156402ee1a8d53.zip
PLUGINS: Additional plugin check for the ELF loader.
The ELF loader does not have access to the symbols of the main executable, it just relocates symbols to it via fixed offsets. We need to make sure that loaded plugins are from the same link process to prevent crashes. An embedded build date is used for that. svn-id: r52730
Diffstat (limited to 'Makefile.common')
-rw-r--r--Makefile.common4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.common b/Makefile.common
index 14d73405fd..cf8626ce3c 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -54,6 +54,10 @@ DEPFILES =
# the build date in gScummVMBuildDate is correct.
base/version.o: $(filter-out base/libbase.a,$(OBJS))
+ifdef USE_ELF_LOADER
+backends/plugins/elf/version.o: $(filter-out base/libbase.a,$(filter-out backends/libbackends.a,$(OBJS)))
+endif
+
# Replace regular output with quiet messages
ifneq ($(findstring $(MAKEFLAGS),s),s)
ifneq ($(VERBOSE_BUILD),1)