summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rwxr-xr-xconfigure.ac12
2 files changed, 13 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 58893afc..6598cb01 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-09-30 Paul Jakma <paul@dishone.st>
+
+ * Update default CFLAGS for gcc to keep Hasso busy.
+
2004-09-27 Paul Jakma <paul@dishone.st>
* update-autotools: libtoolize should copy files, rather than link.
diff --git a/configure.ac b/configure.ac
index 9f42f8c8..00bcb4ad 100755
--- a/configure.ac
+++ b/configure.ac
@@ -54,14 +54,20 @@ dnl Check CC
dnl --------
AC_PROG_CC
-dnl -----------------------------------------
+dnl ---------------------------------------------
dnl If CLFAGS doesn\'t exist set default value
-dnl -----------------------------------------
+dnl AC_PROG_CC will have set minimal default
+dnl already, eg "-O2 -g" for gcc, "-g" for others
dnl (Wall is gcc specific... have to make sure
dnl gcc is being used before setting it)
+dnl ---------------------------------------------
dnl
if test "x$cflags_specified" = "x" ; then
- CFLAGS="$CFLAGS -O"
+ if test "x${GCC}" = "xyes"; then
+ CFLAGS="-Os -g -Wall -Wpacked -Wpadded -Wsign-compare"
+ CFLAGS="${CFLAGS} -Wpointer-arith -Wbad-function-cast"
+ CFLAGS="${CFLAGS} -Wwrite-strings"
+ fi
fi
dnl --------------