[Libvir] don't clobber user-specified CFLAGS

Jim Meyering jim at meyering.net
Fri Mar 23 18:59:33 UTC 2007

Building libvirt with CFLAGS=-g doesn't work as expected: gcc runs
without -g.  That was due to the following assignment that gives CFLAGS
the value of an undefined variable.

2007-03-23  Jim Meyering  <jim at meyering.net>

	* acinclude.m4: Remove bogus CFLAGS=$undefined_var assignment that
	would clobber any CFLAGS setting from e.g., ./autogen.sh CFLAGS=-g.
	Reported by David Lutterkort.

Index: acinclude.m4
RCS file: /data/cvs/libvirt/acinclude.m4,v
retrieving revision 1.3
diff -u -p -r1.3 acinclude.m4
--- acinclude.m4	21 Mar 2007 15:22:31 -0000	1.3
+++ acinclude.m4	23 Mar 2007 18:52:55 -0000
     unset option
     unset try_compiler_flags
-    CFLAGS="$realsave_CFLAGS"
                                  [Try to warn if code is not ISO C ]),,

More information about the libvir-list mailing list