Question about CFLAGS handling in configure.in
Brought to you by:
matthiasgrimm
|
From: Frank L. <dj...@de...> - 2005-09-28 17:24:20
|
In configure.in of gtkpbbuttonsd (and probably the others, too, didn't check) you use the following snippet: CFLAGS= dnl Use -Wall if we have gcc. changequote(,)dnl if test "x$GCC" = "xyes"; then case " $CFLAGS " in *[\ \ ]-Wall[\ \ ]*) ;; *) CFLAGS="$CFLAGS -Wall" ;; esac fi changequote([,])dnl which is bit "suboptimal", since it deletes all previous changes to CFLAGS, especially such given in the configure commandline or as enviroment variables. Is there a good reason to do this? It seems you use this only to filter out "-g" from CFLAGS? Gruesse, -- Frank Lichtenheld <dj...@de...> www: http://www.djpig.de/ |