diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -333,15 +333,17 @@ LDFLAGS += -static endif endif -# If building on Cygwin/MingW don't link with Cygwin libs +# If building on MingW don't link with Cygwin libs ifdef WIN32 -ifdef MINGW ifdef CYGWIN +BASECFLAGS += -mwin32 +LDFLAGS += -mwin32 +endif +ifdef MINGW BASECFLAGS += -mno-cygwin LDFLAGS += -mno-cygwin endif endif -endif CFLAGS += $(BASECFLAGS) |