aboutsummaryrefslogtreecommitdiff
path: root/devtools/create_project
diff options
context:
space:
mode:
authorMax Horn2011-06-01 23:57:12 +0200
committerMax Horn2011-06-01 23:57:21 +0200
commit8f36c52e5866bde77a5f79ac6c1ea96152e5e22f (patch)
treee0a5b2e9db00d832abd6b1a27d68c86c8ce30831 /devtools/create_project
parent70d5da3bc4362894c875b00ced1b289d18898258 (diff)
downloadscummvm-rg350-8f36c52e5866bde77a5f79ac6c1ea96152e5e22f.tar.gz
scummvm-rg350-8f36c52e5866bde77a5f79ac6c1ea96152e5e22f.tar.bz2
scummvm-rg350-8f36c52e5866bde77a5f79ac6c1ea96152e5e22f.zip
DEVTOOLS: Do not use -Wglobal-constructors on create_project.o
Diffstat (limited to 'devtools/create_project')
-rw-r--r--devtools/create_project/module.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/devtools/create_project/module.mk b/devtools/create_project/module.mk
index 025cbf4ba3..0db070fa7c 100644
--- a/devtools/create_project/module.mk
+++ b/devtools/create_project/module.mk
@@ -12,6 +12,11 @@ MODULE_OBJS := \
# Set the name of the executable
TOOL_EXECUTABLE := create_project
+# Set custom build flags for create_project.o: It uses C++ iostreams,
+# which make use of global constructors. So we don't want warnings for
+# that.
+$(srcdir)/devtools/create_project/create_project.o: CXXFLAGS:=$(filter-out -Wglobal-constructors,$(CXXFLAGS))
+
# Include common rules
include $(srcdir)/rules.mk