Changeset - r20259:3cead94f295a
[Not reviewed]
master
0 1 0
glx - 11 years ago 2013-05-19 15:44:09
glx@openttd.org
(svn r25266) -Fix: gcc4.6 removed -mno-cygwin option
1 file changed with 6 insertions and 3 deletions:
0 comments (0 inline, 0 general)
config.lib
Show inline comments
 
@@ -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"
0 comments (0 inline, 0 general)