rakelib/compile.rake
changeset 39 7a7c62fe520a
parent 35 9d3a72ddb471
child 44 966a30552617
--- a/rakelib/compile.rake	Fri Jun 10 00:05:09 2016 +0100
+++ b/rakelib/compile.rake	Sat Jun 11 12:25:54 2016 +0200
@@ -171,6 +171,10 @@
 GCC_CFLAGS_PIC = win32? ? '' : '-fPIC'
 GCC_CFLAGS = "-pipe -fno-omit-frame-pointer -fno-stack-protector -fwrapv #{GCC_CFLAGS_PIC} #{GCC_CFLAGS_OPT} #{GCC_CFLAGS_DBG}"
 
+# Sigh, for MINGW 5.x.x coming with MSYS2 we have to force C language as 
+# Borland make and build files are using funny suffixes to confuse GCC's 
+# language detection. Triple sigh here!
+GCC_CFLAGS += " -x c" if win32?
 
 namespace :'compile' do