summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2013-03-02 19:38:17 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2013-03-02 19:38:17 +0100
commitfe2609938cf459690712a2853156a45e95e7564e (patch)
tree01a2b89fc2c639d25ff9e4201cc38cdd62edb76d /config
parent710bb2967ae954e10a12a7eba91ebb6d5664a9b2 (diff)
Add -Wall to CFLAGS everywhere to get meaningful compiler warnings in some cases
Also fixes some of GLib's configure checks that rely on compiler warnings.
Diffstat (limited to 'config')
-rw-r--r--config/android.config6
-rw-r--r--config/darwin.config2
-rw-r--r--config/ios.config2
-rw-r--r--config/linux.config8
-rw-r--r--config/windows.config6
5 files changed, 12 insertions, 12 deletions
diff --git a/config/android.config b/config/android.config
index 015e161..d1bb647 100644
--- a/config/android.config
+++ b/config/android.config
@@ -33,9 +33,9 @@ else:
sysroot = "%s/platforms/android-%s/arch-%s" % (toolchain_prefix, v, arch)
# Default compiler flags
-os.environ['CFLAGS'] = '-g -Os '
-os.environ['CXXFLAGS'] = '-g -Os '
-os.environ['OBJCFLAGS'] = '-g -Os '
+os.environ['CFLAGS'] = '-Wall -g -Os '
+os.environ['CXXFLAGS'] = '-Wall -g -Os '
+os.environ['OBJCFLAGS'] = '-Wall -g -Os '
ccache = use_ccache and 'ccache ' or ''
diff --git a/config/darwin.config b/config/darwin.config
index 0b0c198..8837e2c 100644
--- a/config/darwin.config
+++ b/config/darwin.config
@@ -56,7 +56,7 @@ sdk='-mmacosx-version-min=%s -isysroot %s' % (min_osx_sdk_version, sdk_root)
for f in ['CFLAGS', 'CCASFLAGS', 'CXXFLAGS', 'OBJCFLAGS', 'LDFLAGS']:
os.environ[f] = os.environ.get(f, '')
-arch_cflags = '-g -O2'
+arch_cflags = '-Wall -g -O2'
arch_ldflags = ' -headerpad_max_install_names -Wl,-headerpad_max_install_names '
if target_arch == Architecture.X86_64:
diff --git a/config/ios.config b/config/ios.config
index f5a65d9..f65645a 100644
--- a/config/ios.config
+++ b/config/ios.config
@@ -31,7 +31,7 @@ _toolchain_root = '%s/usr/bin' % iphone_platform
sysroot = os.path.join(iphone_platform, 'SDKs', '%s%s.sdk' %(ios_platform, v))
ccache = use_ccache and 'ccache ' or ''
-extra_cflags=''
+extra_cflags='-Wall -g -Os'
if target_arch == Architecture.ARMv7:
arch_cflags = ' -arch armv7 -mcpu=cortex-a8 -pipe'
elif target_arch == Architecture.ARM:
diff --git a/config/linux.config b/config/linux.config
index 614300c..3f21097 100644
--- a/config/linux.config
+++ b/config/linux.config
@@ -14,10 +14,10 @@ if target_arch == Architecture.X86:
else:
arch_flags = ' -m64 '
-os.environ['CFLAGS'] += ' -g -O2' + arch_flags
-os.environ['CXXFLAGS'] += ' -g -O2' + arch_flags
-os.environ['OBJCFLAGS'] += ' -g -O2' + arch_flags
-os.environ['CCASFLAGS'] += ' -g -O2' + arch_flags
+os.environ['CFLAGS'] += ' -Wall -g -O2' + arch_flags
+os.environ['CXXFLAGS'] += ' -Wall -g -O2' + arch_flags
+os.environ['OBJCFLAGS'] += ' -Wall -g -O2' + arch_flags
+os.environ['CCASFLAGS'] += ' -Wall -g -O2' + arch_flags
os.environ['LDFLAGS'] += arch_flags
os.environ['am_cv_python_pyexecdir'] = '%s/%s/site-packages' % (prefix, py_prefix)
os.environ['am_cv_python_pythondir'] = '%s/%s/site-packages' % (prefix, py_prefix)
diff --git a/config/windows.config b/config/windows.config
index 3071081..d4ebd67 100644
--- a/config/windows.config
+++ b/config/windows.config
@@ -39,9 +39,9 @@ def cmd(command):
return '%s-%s' % (host, command)
# Default compiler flags
-os.environ['CFLAGS'] = '-g -O2 '
-os.environ['CXXFLAGS'] = '-g -O2 '
-os.environ['OBJCFLAGS'] = '-g -O2 '
+os.environ['CFLAGS'] = '-Wall -g -O2 '
+os.environ['CXXFLAGS'] = '-Wall -g -O2 '
+os.environ['OBJCFLAGS'] = '-Wall -g -O2 '
ccache = use_ccache and 'ccache ' or ''