From 300a18e6d8b95ddff61e6a425260356509466875 Mon Sep 17 00:00:00 2001 From: William Douglas Date: Mon, 21 May 2012 15:02:42 -0700 Subject: [PATCH] Update CFLAGS from old Makefile Signed-off-by: William Douglas --- autogen.sh | 3 ++- src/Makefile.am | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/autogen.sh b/autogen.sh index 3538370..1769356 100755 --- a/autogen.sh +++ b/autogen.sh @@ -5,4 +5,5 @@ autoreconf --install args="--prefix=/usr \ --sysconfdir=/etc" -./configure $args $@ \ No newline at end of file +echo ./configure $args $@ +./configure $args $@ diff --git a/src/Makefile.am b/src/Makefile.am index e3cb974..c2d02ea 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -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) -- 2.7.4