summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.lib9
1 files changed, 6 insertions, 3 deletions
diff --git a/config.lib b/config.lib
index aeb480aa3..d13bb04ae 100644
--- a/config.lib
+++ b/config.lib
@@ -1487,12 +1487,15 @@ make_cflags_and_ldflags() {
LDFLAGS="$LDFLAGS -mwin32"
fi
if [ "$os" = "MINGW" ] || [ "$os" = "CYGWIN" ]; then
- flags="$flags -mno-cygwin"
+ if [ $cc_version -lt 46 ]; then
+ flags="$flags -mno-cygwin"
+ LDFLAGS="$LDFLAGS -mno-cygwin"
+ fi
if [ "$enable_console" != "0" ]; then
- LDFLAGS="$LDFLAGS -mno-cygwin -Wl,--subsystem,console"
+ LDFLAGS="$LDFLAGS -Wl,--subsystem,console"
else
- LDFLAGS="$LDFLAGS -mno-cygwin -Wl,--subsystem,windows"
+ LDFLAGS="$LDFLAGS -Wl,--subsystem,windows"
fi
LIBS="$LIBS -lws2_32 -lwinmm -lgdi32 -ldxguid -lole32"