Update CFLAGS from old Makefile
authorWilliam Douglas <william.douglas@intel.com>
Mon, 21 May 2012 22:02:42 +0000 (15:02 -0700)
committerWilliam Douglas <william.douglas@intel.com>
Mon, 21 May 2012 22:02:42 +0000 (15:02 -0700)
Signed-off-by: William Douglas <william.douglas@intel.com>
autogen.sh
src/Makefile.am

index 3538370..1769356 100755 (executable)
@@ -5,4 +5,5 @@ autoreconf --install
 args="--prefix=/usr \
 --sysconfdir=/etc"
 
-./configure $args $@
\ No newline at end of file
+echo ./configure $args $@
+./configure $args $@
index e3cb974..c2d02ea 100644 (file)
@@ -1,3 +1,9 @@
+AM_CFLAGS = -std=gnu99 -fstack-protector -D_FORTIFY_SOURCE=2 \
+       -Wall -pedantic -W -Wstrict-prototypes -Wundef -fno-common \
+       -Werror-implicit-function-declaration \
+       -Wdeclaration-after-statement -Wformat \
+       -Wformat-security -Werror=format-security
+
 sbin_PROGRAMS = \
        corewatcher \
        corewatcher-config
@@ -13,6 +19,7 @@ corewatcher_config_SOURCES = \
        corewatcher-config.c
 
 corewatcher_CFLAGS = \
+       $(AM_CFLAGS) \
        $(LIBPROXY_CFLAGS) \
        $(LIBNOTIFY_CFLAGS) \
        $(LIBCURL_CFLAGS)