diff options
-rw-r--r-- | config.lib | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config.lib b/config.lib index 4f0d501db..56d6c402c 100644 --- a/config.lib +++ b/config.lib @@ -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 |