1
0
Fork 0

(svn r8968) -Fix (win32): silent g++ 4.0+ warnings about breaking strict-aliasing

release/0.6
truelight 2007-03-02 00:45:08 +00:00
parent 322953ad2e
commit 89d8f5f7b5
1 changed files with 3 additions and 0 deletions

View File

@ -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