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
This commit is contained in:
Andreas Köhler 2007-02-03 01:47:09 +00:00
parent e6e07fdc1a
commit fad14daab2

View File

@ -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