From d0c2f623da2fd63eefaa84b7c6e6e79dcd51a051 Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Thu, 28 Aug 2008 22:51:24 -0500 Subject: [PATCH] Do not use -mwindows automatically, tests do not need it --- medit/Makefile.ug | 4 ++++ mingw-configure | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/medit/Makefile.ug b/medit/Makefile.ug index 363c7617..a4229c04 100644 --- a/medit/Makefile.ug +++ b/medit/Makefile.ug @@ -29,6 +29,10 @@ medit_SOURCES += main.c # medit_SOURCES += main.c # endif +if MOO_OS_MINGW +medit_LDFLAGS += -mwindows +endif + medit_LDFLAGS += -export-dynamic include ../moo/moo-comps.mk medit_LDADD = $(moo_app_ldadd) diff --git a/mingw-configure b/mingw-configure index d28cb367..5ea7c418 100755 --- a/mingw-configure +++ b/mingw-configure @@ -129,7 +129,7 @@ export AR="${MINGW_TOOL_PREFIX}ar" export RANLIB="${MINGW_TOOL_PREFIX}ranlib" export STRIP="${MINGW_TOOL_PREFIX}strip" -export LDFLAGS="-L$GTK_PREFIX/lib -mwindows $LDFLAGS" +export LDFLAGS="-L$GTK_PREFIX/lib $LDFLAGS" export CPPFLAGS="-I$GTK_PREFIX/include $CPPFLAGS" export CFLAGS="-I$GTK_PREFIX/include -mms-bitfields -march=i686 ${CFLAGS:-"-O2"}" export CXXFLAGS="-I$GTK_PREFIX/include -mms-bitfields -march=i686 ${CXXFLAGS:-"-O2"}"