This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Pull in ld.so for libresolv
- From: Chung-Lin Tang <cltang at codesourcery dot com>
- To: Roland McGrath <roland at hack dot frob dot com>
- Cc: <libc-alpha at sourceware dot org>, "Joseph S. Myers" <joseph at codesourcery dot com>,Maxim Kuvyrkov <maxim at codesourcery dot com>
- Date: Thu, 22 Sep 2011 01:41:56 +0800
- Subject: Re: [PATCH] Pull in ld.so for libresolv
- References: <4E7A1BFA.6010209@codesourcery.com> <20110921172813.07BF82C099@topped-with-meat.com>
On 2011/9/22 01:28 AM, Roland McGrath wrote:
> This is due to using (IMHO broken) compiler versions (like Ubuntu's)
> that implicitly set -fstack-protector by default. We really never want
> to compile glibc with implicit magic compiler flags we don't know about.
> You should use CFLAGS='-g -O2 -fno-stack-protector' at configure time
> when using such a compiler.
>
> We might at some point decide that compiling glibc with
> -fstack-protector makes sense. If we do, then we'll enable it
> explicitly and resolve any fallout then. Unless and until we do that,
> a change like this is not desireable.
>
>
> Thanks,
> Roland
>
No, the -fstack-protector is not there because of implicit options. It's
currently added to CFLAGS-libresolv in resolv/Makefile.
Thanks,
Chung-Lin