OSDN Git Service

ntpl: fix static linking by not leaking SSP_ALL_CFLAGS
authorNatanael Copa <natanael.copa@gmail.com>
Thu, 11 Nov 2010 15:54:19 +0000 (15:54 +0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 11 Nov 2010 15:55:09 +0000 (16:55 +0100)
commitc452a58e65a2600ab1e9a7be2e5a6e4cae0e8b2a
tree6759c98cf22874fbca05c71c3b41e76c07b56fcc
parent871ea0e8c0052d8ba03303d7f52118d7c2a3480c
ntpl: fix static linking by not leaking SSP_ALL_CFLAGS

The SSP_ALL_CFLAGS in nptl arch CFLAGS leaks out and forces things
like dl-support.c, brk.c, sbrk.c memcpy, etc to be built with
-fstack-protector-all. This is bad when linking statically since
initializing TLS will call those functions before SSP is initialized.

The libpthread itself will still be built with -fstack-protector-all
due to CFLAGS-nptl has SSP_ALL_CFLAGS in libpthread/nptl/Makefile.in

Thanks to Timo Teras for helping with this.

Signed-off-by: Natanael Copa <natanael.copa@gmail.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
15 files changed:
libpthread/nptl/sysdeps/arm/Makefile.arch
libpthread/nptl/sysdeps/generic/Makefile.in
libpthread/nptl/sysdeps/i386/Makefile.arch
libpthread/nptl/sysdeps/mips/Makefile.arch
libpthread/nptl/sysdeps/powerpc/Makefile.arch
libpthread/nptl/sysdeps/sh/Makefile.arch
libpthread/nptl/sysdeps/sparc/Makefile.arch
libpthread/nptl/sysdeps/unix/sysv/linux/arm/Makefile.arch
libpthread/nptl/sysdeps/unix/sysv/linux/i386/Makefile.arch
libpthread/nptl/sysdeps/unix/sysv/linux/mips/Makefile.arch
libpthread/nptl/sysdeps/unix/sysv/linux/powerpc/Makefile.arch
libpthread/nptl/sysdeps/unix/sysv/linux/sh/Makefile.arch
libpthread/nptl/sysdeps/unix/sysv/linux/sparc/Makefile.arch
libpthread/nptl/sysdeps/unix/sysv/linux/x86_64/Makefile.arch
libpthread/nptl/sysdeps/x86_64/Makefile.arch