summaryrefslogtreecommitdiffstats
path: root/unix/Makefile.in
diff options
context:
space:
mode:
authorescoffon <escoffon>1998-07-22 13:39:13 (GMT)
committerescoffon <escoffon>1998-07-22 13:39:13 (GMT)
commit693bcba7c5261324ef8560a98f6d7b08f033bed7 (patch)
treeca9a57d398526ceccce37f75c32e985171594eb3 /unix/Makefile.in
parentb9b329dc1932857d938bd6e835ce5ad528d62923 (diff)
downloadtcl-693bcba7c5261324ef8560a98f6d7b08f033bed7.zip
tcl-693bcba7c5261324ef8560a98f6d7b08f033bed7.tar.gz
tcl-693bcba7c5261324ef8560a98f6d7b08f033bed7.tar.bz2
Added support for specifying warning flags for the compiler, with checks
for gcc and appropriate defaults.
Diffstat (limited to 'unix/Makefile.in')
-rw-r--r--unix/Makefile.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/unix/Makefile.in b/unix/Makefile.in
index 8a96a01..0ecf5cd 100644
--- a/unix/Makefile.in
+++ b/unix/Makefile.in
@@ -74,6 +74,9 @@ MANN_INSTALL_DIR = $(MAN_INSTALL_DIR)/mann
# Libraries built with optimization switches have this additional extension
DBGX = @DBGX@
+# warning flags
+CFLAGS_WARNING = @CFLAGS_WARNING@
+
# The default switches for optimization or debugging
CFLAGS_DEBUG = @CFLAGS_DEBUG@
CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@
@@ -207,7 +210,8 @@ CC = @CC@
#----------------------------------------------------------------
-CC_SWITCHES = ${CFLAGS} ${TCL_SHLIB_CFLAGS} -I${GENERIC_DIR} -I${SRC_DIR} \
+CC_SWITCHES = ${CFLAGS} ${CFLAGS_WARNING} ${TCL_SHLIB_CFLAGS} \
+-I${GENERIC_DIR} -I${SRC_DIR} \
${AC_FLAGS} ${MATH_FLAGS} ${GENERIC_FLAGS} ${PROTO_FLAGS} ${MEM_DEBUG_FLAGS} \
${COMPILE_DEBUG_FLAGS} ${ENV_FLAGS} -DTCL_SHLIB_EXT=\"${SHLIB_SUFFIX}\"