From fad14daab2f11a6feda6a0a6d6bb735a6bb6e7ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20K=C3=B6hler?= Date: Sat, 3 Feb 2007 01:47:09 +0000 Subject: [PATCH] Add -mms-bitfields and -mwindows to configure.in. On Windows, all C source files should be compiled with -mms-bitfields. But this was only the case for those in modules depending on gtk+. Fixes make check in src/app-utils. Link with -mwindows, making the DLLs and gnucash-bin.exe to run in the GUI subsystem. Clicking the bat will not open a console for gnucash, starting from MSYS will not print messages, anymore. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15493 57a11ea4-9604-0410-9ed3-97b8803252fd --- configure.in | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index a9bad5fef2..b4a76e804e 100644 --- a/configure.in +++ b/configure.in @@ -2037,8 +2037,11 @@ else fi AC_MSG_RESULT($warnFLAGS) -# Extend LDFLAGS because libtool on Windows requires this argument -LDFLAGS="${LDFLAGS} -no-undefined" +# Adjust CFLAGS and LDFLAGS on Windows +if test "x${platform_win32}" = "xyes"; then + CFLAGS="${CFLAGS} -mms-bitfields" + LDFLAGS="${LDFLAGS} -no-undefined -mwindows" +fi ### -------------------------------------------------------------------------- ### Adjustments -- especially executables that aren't generated via