From 16939a4bb3b20558f7def5bf54db6814cefafbef Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Thu, 10 May 2012 22:25:06 +0200 Subject: [PATCH] syslog-ng: fixed build by passing -std=gnu99 Note: By default the Makefile defines 'CC=gcc -std=gnu99' and because we automatically pass 'CC=gcc' as make argument which overwrites the the needed '-std=gnu99' we need to workaround the problem manually --- base/syslog-ng/syslog-ng.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/base/syslog-ng/syslog-ng.conf b/base/syslog-ng/syslog-ng.conf index 975c8fbef..610db6924 100644 --- a/base/syslog-ng/syslog-ng.conf +++ b/base/syslog-ng/syslog-ng.conf @@ -20,5 +20,10 @@ else var_append extraconfopt " " "--enable-dynamic-linking" fi +# by default the Makefile defines 'CC=gcc -std=gnu99' and because we +# automatically pass 'CC=gcc' as make argument which overwrites the +# the needed '-std=gnu99' we need to workaround the problem manually +CC="gcc -std=gnu99" + hook_add postmake 5 'cp -v $confdir/etc_syslog-ng.conf $root/etc/syslog-ng.conf'