use CPPFLAGS at configure time
Alexandre Oliva
aoliva@redhat.com
Fri Apr 4 04:28:00 GMT 2003
On Apr 4, 2003, Roland McGrath <roland@redhat.com> wrote:
> I have checked in configure changes to make it consistent throughout.
CFLAGS must be used in every invocation of the C compiler, both those
which do compilation and those which do linking. This is straight
from the GNU coding standards.
For assembling, it is often expected that $(AS), not $(CC), will be
used. Using $(CC) is more convenient because it lets CC do the right
thing and pass the right flags to the assembler, but not passing
$(CFLAGS) to $(CC) in this case prevents relevant compiler options
that may (and should) affect the generated object file from being
passed to the assembler. E.g., -Wa,-option, that should affect all
code that is assembled, is now dropped after your rearrangement. Even
options such as -fPIC/-fpic on a number of platforms cause options
such as -KPIC to be passed to the assembler. Taking CFLAGS out in
this case is wrong, very wrong. Please put it back in.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{redhat.com, gcc.gnu.org}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist Professional serial bug killer
More information about the Libc-alpha
mailing list