This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: RFC src/configure* - "CFLAGS=-g -O" instead of "CFLAGS=... -Wall"


   Date: Thu, 06 Apr 2000 21:43:57 +1000
   From: Andrew Cagney <ac131313@cygnus.com>

   Basic problem.  I can't see a way of differentiating between:

	   make
   and	make WARN_CFLAGS=

   This is important as the top-level make shouldn't pass down
   ``WARN_CFLAGS='' in the first case but should in the second.

Why?

What specification are you trying to implement?

   For this to work, the sub-makefiles need to define something like
   ``ALL_CFLAGS'' (GDB and GCC do, BINUTILS doesn't) vis:

	   ALL_CFLAGS = $(CFLAGS) $(WARN_CFLAGS)

   what does binutils think of this?

I assume that what you mean is that the binutils should include
WARN_CFLAGS when compiling code.  The binutils use automake, so this
would be done by putting
    AM_CFLAGS = $(WARN_CFLAGS)
in the Makefile.am file.  That would be fine.

Ian

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]