This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Saturday 14 April 2007, Jakub Jelinek wrote: > On Sat, Apr 14, 2007 at 11:54:40AM +0300, Metuki Sabhe wrote: > > How can I compile glibc with some additional compiler flags ? > > Just tell it to configure, say: > CC=gcc CXX=g++ CFLAGS="-g -O2 -mtune=generic -DNDEBUG=1" \ > ../configure --prefix=/usr --enable-add-ons=nptl,libidn \ > --without-cvs --enable-kernel=2.6.9 --with-headers=/usr/include \ > --enable-bind-now --with-tls --with-__thread --build x86_64-redhat-linux > \ --host x86_64-redhat-linux on that note, is there a reason for CPPFLAGS not being respected even though CFLAGS/ASFLAGS are ? you can half cheat and stick your CPPFLAGS into CFLAGS (like -DNDEBUG=1), but that wont help when compiling .S files as CPPFLAGS/ASFLAGS are only used in that step ... -mike
Attachment:
pgp00000.pgp
Description: PGP signature
2007-04-14 Mike Frysinger <vapier@gentoo.org> * Makeconfig (CPPFLAGS): Add $(CPPFLAGS-config). * config.make.in (CPPFLAGS-config): Set to @CPPFLAGS@. --- libc/Makeconfig +++ libc/Makeconfig @@ -672,6 +672,7 @@ CPPFLAGS = $($(subdir)-CPPFLAGS) $(+incl $(foreach lib,$(libof-$(basename $(@F))) \ $(libof-$(<F)) $(libof-$(@F)),$(CPPFLAGS-$(lib))) \ $(CPPFLAGS-$(<F)) $(CPPFLAGS-$(@F)) $(CPPFLAGS-$(basename $(@F))) +CPPFLAGS += $(CPPFLAGS-config) override CFLAGS = -std=gnu99 \ $(filter-out %frame-pointer,$(+cflags)) $(+gccwarn-c) \ $(sysdep-CFLAGS) $(CFLAGS-$(suffix $@)) $(CFLAGS-$(<F)) \ --- libc/config.make.in +++ libc/config.make.in @@ -95,6 +95,7 @@ CC = @CC@ CXX = @CXX@ BUILD_CC = @BUILD_CC@ CFLAGS = @CFLAGS@ +CPPFLAGS-config = @CPPFLAGS@ ASFLAGS-config = @ASFLAGS_config@ AR = @AR@ RANLIB = @RANLIB@
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |