diff options
author | nijtmans <nijtmans> | 2008-11-12 00:37:01 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2008-11-12 00:37:01 (GMT) |
commit | 8f0e26afae621cfcfc105b9c3535379e29ec82c4 (patch) | |
tree | 036ba7b90443922d2b65e5ee11004d75f073e0e7 /unix/configure | |
parent | 08822bfc3683f6f3b0af04540c55847ed2b0ecd9 (diff) | |
download | tk-8f0e26afae621cfcfc105b9c3535379e29ec82c4.zip tk-8f0e26afae621cfcfc105b9c3535379e29ec82c4.tar.gz tk-8f0e26afae621cfcfc105b9c3535379e29ec82c4.tar.bz2 |
Use -O2 as gcc optimization compiler flag, and get
rid of -Wno-implicit-int for UNIX
Diffstat (limited to 'unix/configure')
-rwxr-xr-x | unix/configure | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/unix/configure b/unix/configure index cd5ad0b..9e09663 100755 --- a/unix/configure +++ b/unix/configure @@ -5087,13 +5087,16 @@ fi ECHO_VERSION='`echo ${VERSION}`' TCL_LIB_VERSIONS_OK=ok CFLAGS_DEBUG=-g - CFLAGS_OPTIMIZE=-O if test "$GCC" = yes; then - CFLAGS_WARNING="-Wall -Wno-implicit-int" + CFLAGS_OPTIMIZE="-O2" + CFLAGS_WARNING="-Wall" else - CFLAGS_WARNING="" + + CFLAGS_OPTIMIZE=-O + CFLAGS_WARNING="" + fi TCL_NEEDS_EXP_FILE=0 |