summaryrefslogtreecommitdiffstats
path: root/toolchain/uClibc/uclibc.mk
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2009-04-22 07:27:22 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2009-04-22 07:27:22 +0000
commit503ab93cfe0f20976435f62e46b37afae6d8cdab (patch)
tree0ecd7c9fe1c1223174e8f8815083759f2fa654c6 /toolchain/uClibc/uclibc.mk
parent3b712a3d891bf23055a587fc518f7cd2139a6a09 (diff)
downloadbuildroot-novena-503ab93cfe0f20976435f62e46b37afae6d8cdab.tar.gz
buildroot-novena-503ab93cfe0f20976435f62e46b37afae6d8cdab.zip
toolchain: add BR2_USE_SSP option for stack protection support
Using the support in uClibc.
Diffstat (limited to 'toolchain/uClibc/uclibc.mk')
-rw-r--r--toolchain/uClibc/uclibc.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/toolchain/uClibc/uclibc.mk b/toolchain/uClibc/uclibc.mk
index 164c474f5..b39b9399b 100644
--- a/toolchain/uClibc/uclibc.mk
+++ b/toolchain/uClibc/uclibc.mk
@@ -303,6 +303,11 @@ else
-e 's,.*UCLIBC_HAS_FPU.*,UCLIBC_HAS_FPU=y\nHAS_FPU=y\nUCLIBC_HAS_FLOATS=y\n,g' \
$(UCLIBC_DIR)/.oldconfig
endif
+ifeq ($(BR2_USE_SSP),y)
+ $(SED) 's,^.*UCLIBC_HAS_SSP[^_].*,UCLIBC_HAS_SSP=y,g' $(UCLIBC_DIR)/.oldconfig
+else
+ $(SED) 's,^.*UCLIBC_HAS_SSP[^_].*,UCLIBC_HAS_SSP=n,g' $(UCLIBC_DIR)/.oldconfig
+endif
$(SED) '/UCLIBC_HAS_THREADS/d' $(UCLIBC_DIR)/.oldconfig
$(SED) '/LINUXTHREADS/d' $(UCLIBC_DIR)/.oldconfig
$(SED) '/LINUXTHREADS_OLD/d' $(UCLIBC_DIR)/.oldconfig