[RFC PATCH 1/9] build: use -std=c99 -pedantic for C source

Jani Nikula jani at nikula.org
Sat Jan 7 15:26:15 PST 2012


Signed-off-by: Jani Nikula <jani at nikula.org>
---
 configure |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure b/configure
index e90b76f..f84262d 100755
--- a/configure
+++ b/configure
@@ -25,8 +25,8 @@ fi
 # environment variables)
 CC=${CC:-gcc}
 CXX=${CXX:-g++}
-CFLAGS=${CFLAGS:--O2}
-CXXFLAGS=${CXXFLAGS:-\$(CFLAGS)}
+CFLAGS=${CFLAGS:--O2 -std=c99 -pedantic}
+CXXFLAGS=${CXXFLAGS:--O2}
 LDFLAGS=${LDFLAGS:-}
 XAPIAN_CONFIG=${XAPIAN_CONFIG:-xapian-config}
 
-- 
1.7.5.4



More information about the notmuch mailing list