summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-06-17 23:41:21 +0200
committerLennart Poettering <lennart@poettering.net>2010-06-17 23:41:21 +0200
commitbe1a67d9d63bfdd4a5f8ba9cfc804030f10f5833 (patch)
treef10e33c2a6a1fd8fc9e25f4d8a57e9ab2b98b3da /configure.ac
parent240a3a85bd627b43123f880cfa5a14497b39c6f0 (diff)
build-sys: pass -fno-strict-aliasing by default
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac11
1 files changed, 6 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac
index f44b493dd7..5671df4b41 100644
--- a/configure.ac
+++ b/configure.ac
@@ -48,14 +48,12 @@ AC_PROG_GCC_TRADITIONAL
AC_USE_SYSTEM_EXTENSIONS
CC_CHECK_CFLAGS_APPEND([ \
+ -pipe \
-Wall \
-W \
-Wextra \
- -pipe \
- -Wno-long-long \
-Winline \
-Wvla \
- -Wno-overlength-strings \
-Wundef \
-Wformat=2 \
-Wlogical-op \
@@ -78,12 +76,15 @@ CC_CHECK_CFLAGS_APPEND([ \
-Wcast-align \
-Wstrict-aliasing=2 \
-Wwrite-strings \
+ -Wno-long-long \
+ -Wno-overlength-strings \
-Wno-unused-parameter \
- -ffast-math \
+ -Wno-missing-field-initializers \
-Wp,-D_FORTIFY_SOURCE=2 \
+ -ffast-math \
-fno-common \
-fdiagnostics-show-option \
- -Wno-missing-field-initializers])
+ -fno-strict-aliasing])
AC_SEARCH_LIBS([clock_gettime], [rt], [], [AC_MSG_ERROR([*** POSIX RT library not found])])
AC_SEARCH_LIBS([cap_init], [cap], [], [AC_MSG_ERROR([*** POSIX caps library not found])])