prevent libtool from adding its default CFLAGS
authorPhilip Kovacs <pkovacs@users.sourceforge.net>
Sat, 30 Sep 2006 19:21:58 +0000 (19:21 +0000)
committerPhilip Kovacs <pkovacs@users.sourceforge.net>
Sat, 30 Sep 2006 19:21:58 +0000 (19:21 +0000)
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@705 7f574dfc-610e-0410-a909-a81674777703

ChangeLog
configure.ac

index 53f5433..fa52daf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 # $Id$
 
+2006-09-30
+       * --enable-debug added.
+       * prevent libtool from adding its default CFLAGS
+
 2006-09-28
        * Use pkg-config instead of xft-config.
        * Fix last line bug which had required padding text with extra blank line 
index fecbb44..671efe8 100644 (file)
@@ -6,6 +6,12 @@ dnl
 dnl C Compiler
 dnl
 
+dnl prevent libtool setting LTCFLAGS to default of -g -O2 when CFLAGS unset.
+dnl libtool must be deleted with make distclean to see this fix.
+if test x"$CFLAGS" = x""; then
+    AC_SUBST(CFLAGS, [ ])
+fi
+
 AC_PROG_CC
 AC_PROG_LIBTOOL
 PKG_PROG_PKG_CONFIG([0.17.2])