Changeset - r6189:01ac56fb6479
[Not reviewed]
master
0 1 0
truelight - 18 years ago 2007-03-02 00:45:08
truelight@openttd.org
(svn r8968) -Fix (win32): silent g++ 4.0+ warnings about breaking strict-aliasing
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
config.lib
Show inline comments
 
@@ -671,6 +671,9 @@ make_cflags_and_ldflags() {
 
	if [ "$os" = "CYGWIN" ] || [ "$os" = "MINGW" ]; then
 
		LDFLAGS="$LDFLAGS -Wl,--subsystem,windows"
 
		LIBS="$LIBS -lws2_32 -lwinmm -lgdi32 -ldxguid -lole32"
 
		if [ $cc_version -ge 40 ]; then
 
			CFLAGS="$CFLAGS -fno-strict-aliasing"
 
		fi
 
	fi
 

	
 
	if [ "$os" != "CYGWIN" ] && [ "$os" != "FREEBSD" ] && [ "$os" != "MINGW" ] && [ "$os" != "MORPHOS" ] && [ "$os" != "OSX" ] && [ "$os" != "WINCE" ] && [ "$os" != "PSP" ]; then
0 comments (0 inline, 0 general)