diff options
author | Ian Cooper <iancooper@hotmail.com> | 2020-06-15 22:14:04 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2020-06-17 23:57:07 +0200 |
commit | b933f9cf0cb254e368027cad6d5799e45b237df5 (patch) | |
tree | 26bbaa3322a276dac5d7cf456d51c328baac9a7e /include | |
parent | ba7ddae9a9d0aae9aaf00cfb2438286c2ee21098 (diff) | |
download | upstream-b933f9cf0cb254e368027cad6d5799e45b237df5.tar.gz upstream-b933f9cf0cb254e368027cad6d5799e45b237df5.tar.bz2 upstream-b933f9cf0cb254e368027cad6d5799e45b237df5.zip |
toolchain: remove gcc libssp and use libc variant
Removes the standalone implementation of stack smashing protection
in gcc's libssp in favour of the native implementation available
in glibc and uclibc. Musl libc already uses its native ssp, so this
patch does not affect musl-based toolchains.
Stack smashing protection configuration options are now uniform
across all supported libc variants.
This also makes kernel-level stack smashing protection available
for x86_64 and i386 builds using non-musl libc.
Signed-off-by: Ian Cooper <iancooper@hotmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/package-defaults.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/package-defaults.mk b/include/package-defaults.mk index 31e331b2d5..2fed72b1a4 100644 --- a/include/package-defaults.mk +++ b/include/package-defaults.mk @@ -5,7 +5,7 @@ # See /LICENSE for more information. # -PKG_DEFAULT_DEPENDS = +libc +GCC_LIBSSP:libssp +USE_GLIBC:librt +USE_GLIBC:libpthread +PKG_DEFAULT_DEPENDS = +libc +USE_GLIBC:librt +USE_GLIBC:libpthread ifneq ($(PKG_NAME),toolchain) PKG_FIXUP_DEPENDS = $(if $(filter kmod-%,$(1)),$(2),$(PKG_DEFAULT_DEPENDS) $(filter-out $(PKG_DEFAULT_DEPENDS),$(2))) |