From 89235e9873b84662bde1e2f948a0d20f64b10aed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Medra=C3=B1o=20Calvo?= Date: Tue, 29 Aug 2017 11:35:45 +0200 Subject: Set MSVC cflags on Cygwin when the compiler is not GCC The GCC variable is set by autoconf and inspected by TEA for this same purpose. --- configure | 9 ++++++--- configure.ac | 6 +++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/configure b/configure index 052a60b..49d492f 100755 --- a/configure +++ b/configure @@ -5763,9 +5763,12 @@ generic/tkbltDecls.h done -#if test "windows" = "${TEA_PLATFORM}"; then -#TEA_ADD_CFLAGS([-TP -EHsc -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES]) -#fi +if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then + + PKG_CFLAGS="$PKG_CFLAGS -TP -EHsc -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES" + + +fi vars="tkbltStubLib.C" for i in $vars; do diff --git a/configure.ac b/configure.ac index 7e2d152..72d0fc5 100644 --- a/configure.ac +++ b/configure.ac @@ -128,9 +128,9 @@ generic/tkbltDecls.h ]) TEA_ADD_INCLUDES([]) TEA_ADD_LIBS([-lstdc++]) -#if test "windows" = "${TEA_PLATFORM}"; then -#TEA_ADD_CFLAGS([-TP -EHsc -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES]) -#fi +if test "${TEA_PLATFORM}" = "windows" -a "$GCC" != "yes"; then +TEA_ADD_CFLAGS([-TP -EHsc -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES]) +fi TEA_ADD_STUB_SOURCES([tkbltStubLib.C]) TEA_ADD_TCL_SOURCES([library/graph.tcl]) -- cgit v0.12