This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Build failure on glibc 2.15
On May 24, 2012, at 6:08 PM, Carlos O'Donell wrote:
>
> Known issue. Fixed on trunk.
>
> http://sourceware.org/bugzilla/show_bug.cgi?id=10375
>
> Add -U_FORTIFY_SOURCE to your CFLAGS before building.
>
> Does that help?
>
> Cheers,
> Carlos.
I'm sorry--I don't understand where I am supposed to add -U_FORTIFY_SOURCE to the CFLAGS. I tried the following, but it did not work (same result as before):
1. Cleared the glibc_obj directory.
2. Ran configure as before from glibc_obj in order to create a Makefile.
3. Added
CFLAGS := $(CFLAGS) -U_FORTIFY_SOURCE
to the top of the Makefile in the root gcc_obj directory.
4. When this failed to work by itself, I added the line
export CFLAGS
right about the ".DEFAULT" target rule
$(MAKE) -r PARALLELMFLAGS="$(PARALLELMFLAGS)" -C $(srcdir) objdir=`pwd` $@
I have also tried clearing the glibc_obj directory and then running configure this way:
glibc_obj$ ../glibc/configure --prefix=/home/afa9/GLIBC/glibc_install CFLAGS="$(CFLAGS) -U_FORTIFY_SOURCE"
Configured fine, but make ran into the same problem.
Thanks!
Amittai Aviram
PhD Student in Computer Science
Yale University
646 483 2639
amittai.aviram@yale.edu
http://www.amittai.com