summaryrefslogtreecommitdiffstats
path: root/win/tcl.m4
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-12-16 14:43:02 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-12-16 14:43:02 (GMT)
commit3dd24b804c90d0421a7200b2a2b04794887b95fa (patch)
treede06d4db0198e50996bf48ab566847f80af904e8 /win/tcl.m4
parent2ac3f2c3aa611ff302c7cb22beaa30275cc600f6 (diff)
parent04d138c167f126414371d8702a819cdb63ace694 (diff)
downloadtk-3dd24b804c90d0421a7200b2a2b04794887b95fa.zip
tk-3dd24b804c90d0421a7200b2a2b04794887b95fa.tar.gz
tk-3dd24b804c90d0421a7200b2a2b04794887b95fa.tar.bz2
Merge 8.6
Diffstat (limited to 'win/tcl.m4')
-rw-r--r--win/tcl.m415
1 files changed, 12 insertions, 3 deletions
diff --git a/win/tcl.m4 b/win/tcl.m4
index 73e0b5b..225cfdc 100644
--- a/win/tcl.m4
+++ b/win/tcl.m4
@@ -541,14 +541,14 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
if test "$ac_cv_cross" = "yes"; then
case "$do64bit" in
amd64|x64|yes)
- CC="x86_64-w64-mingw32-gcc"
+ CC="x86_64-w64-mingw32-${CC}"
LD="x86_64-w64-mingw32-ld"
AR="x86_64-w64-mingw32-ar"
RANLIB="x86_64-w64-mingw32-ranlib"
RC="x86_64-w64-mingw32-windres"
;;
*)
- CC="i686-w64-mingw32-gcc"
+ CC="i686-w64-mingw32-${CC}"
LD="i686-w64-mingw32-ld"
AR="i686-w64-mingw32-ar"
RANLIB="i686-w64-mingw32-ranlib"
@@ -685,10 +685,19 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [
CFLAGS_DEBUG=-g
CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer"
- CFLAGS_WARNING="-Wall -Wwrite-strings -Wsign-compare -Wdeclaration-after-statement -Wpointer-arith"
+ CFLAGS_WARNING="-Wall -Wwrite-strings -Wsign-compare -Wpointer-arith"
LDFLAGS_DEBUG=
LDFLAGS_OPTIMIZE=
+ case "${CC}" in
+ *++)
+ CFLAGS_WARNING="${CFLAGS_WARNING} -Wno-format"
+ ;;
+ *)
+ CFLAGS_WARNING="${CFLAGS_WARNING} -Wdeclaration-after-statement"
+ ;;
+ esac
+
# Specify the CC output file names based on the target name
CC_OBJNAME="-o \[$]@"
CC_EXENAME="-o \[$]@"