gnucash maint: Set -std=gnu99, matching master.

John Ralls jralls at code.gnucash.org
Wed Sep 16 21:00:07 EDT 2015


Updated	 via  https://github.com/Gnucash/gnucash/commit/42859b91 (commit)
	from  https://github.com/Gnucash/gnucash/commit/bc9285bb (commit)



commit 42859b91bb529c57608427eef6e6a091982a9421
Author: John Ralls <jralls at ceridwen.us>
Date:   Wed Sep 16 17:59:50 2015 -0700

    Set -std=gnu99, matching master.
    
    Fixes broken build on win32

diff --git a/configure.ac b/configure.ac
index 077585f..48fb4e2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -311,6 +311,9 @@ AC_TRY_RUN([
 ])
 CFLAGS="$GNC_OLDCFLAGS"
 LDFLAGS="$GNC_OLDLDFLAGS"
+dnl First remove any existing -std= setting from CFLAGS then add the one we want.
+CFLAGS=`echo ${CFLAGS} | sed -E -e "s,-std=[[a-z0-9]]+,,g"`
+CFLAGS="${CFLAGS} -std=gnu99"
 
 # Gnucash replaced dlopen/dlsym by the g_module functions; dlsym
 # is needed optionally in one place for BSD linkers, though.



Summary of changes:
 configure.ac | 3 +++
 1 file changed, 3 insertions(+)



More information about the gnucash-changes mailing list