This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: compiling glibc with a compiler flag
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Metuki Sabhe <sabhe dot metuki at gmail dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Sat, 14 Apr 2007 19:20:05 +0200
- Subject: Re: compiling glibc with a compiler flag
- References: <549992e50704140152p3e15d233s162480e50fce627e@mail.gmail.com> <549992e50704140154w3edda896w846f98687450b992@mail.gmail.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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
Jakub