[klibc] Adding -nostdlib to REQFLAGS

H. Peter Anvin
Thu, 01 Sep 2005 20:12:08 -0000

Martin Schlemmer wrote:
> Hi,
>
> For our hardened profiles (gcc with SSP among things), its specs file
> tries to figure out when it should disable SSP for kernel/whatever
> builds by checking if -nostdlib was passed.  KLIBC however do not pass
> this, so it tries to compile with -fno-stack-protector, and then fails
> to link as it cannot resolve the __guard, etc symbols (in glibc).
>
>   http://bugs.gentoo.org/show_bug.cgi?id=103437
>
> Any objection to attached patch?
>

I have committed this; however, in the future, please don't send
base64-encoded patches; I'd rather be able to use git-applymbox to get
the author info correct.

	-hpa