diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-02-04 11:15:42 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-02-04 11:15:42 (GMT) |
commit | b16a5a900917cb28a44b7cee5a7252b4ab5a8253 (patch) | |
tree | c8e0050610e9b523b57cef4db838bcb224c35450 /win/tcl.m4 | |
parent | 7f513ab3af116a0d77cc0cd829993edd3a570b50 (diff) | |
parent | 0d69fc832e95cff706d7bb039e2ff329b8c5d202 (diff) | |
download | tcl-b16a5a900917cb28a44b7cee5a7252b4ab5a8253.zip tcl-b16a5a900917cb28a44b7cee5a7252b4ab5a8253.tar.gz tcl-b16a5a900917cb28a44b7cee5a7252b4ab5a8253.tar.bz2 |
Merge 8.7
Diffstat (limited to 'win/tcl.m4')
-rw-r--r-- | win/tcl.m4 | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -617,6 +617,14 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ else CFLAGS_NOLTO="" fi + AC_CACHE_CHECK([if the compiler understands -finput-charset], + tcl_cv_cc_input_charset, [ + hold_cflags=$CFLAGS; CFLAGS="$CFLAGS -finput-charset=UTF-8" + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],[tcl_cv_cc_input_charset=yes],[tcl_cv_cc_input_charset=no]) + CFLAGS=$hold_cflags]) + if test $tcl_cv_cc_input_charset = yes; then + extra_cflags="$extra_cflags -finput-charset=UTF-8" + fi fi AC_MSG_CHECKING([compiler flags]) @@ -677,7 +685,7 @@ AC_DEFUN([SC_CONFIG_CFLAGS], [ CFLAGS_DEBUG=-g CFLAGS_OPTIMIZE="-O2 -fomit-frame-pointer" - CFLAGS_WARNING="-Wall -Wextra -Wshadow -Wundef -Wwrite-strings -Wpointer-arith -finput-charset=UTF-8" + CFLAGS_WARNING="-Wall -Wextra -Wshadow -Wundef -Wwrite-strings -Wpointer-arith" LDFLAGS_DEBUG= LDFLAGS_OPTIMIZE= |