summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-12-22 21:24:32 +0000
committerEric Andersen <andersen@codepoet.org>2004-12-22 21:24:32 +0000
commit6ae64d25832babd791a3991c34f23c90fd4966ae (patch)
tree5505da51641f72f743e0fd8f14f32490e04d98ed /Rules.mak
parent433ccbdd22063df62307459bb9d73b2e9016a5db (diff)
Patch from Peter S. Mazinger:
Seperate out security features into a separate menu
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak8
1 files changed, 8 insertions, 0 deletions
diff --git a/Rules.mak b/Rules.mak
index fa42c023c..4e2853807 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -254,6 +254,14 @@ else
LDFLAGS := $(CPU_LDFLAGS-y) -s -shared --warn-common --warn-once -z combreloc
endif
+ifeq ($(UCLIBC_BUILD_RELRO),y)
+LDFLAGS+=-z relro
+endif
+
+ifeq ($(UCLIBC_BUILD_NOW),y)
+LDFLAGS+=-z now
+endif
+
# Sigh, some stupid versions of gcc can't seem to cope with '-iwithprefix include'
#CFLAGS+=-iwithprefix include
CFLAGS+=-isystem $(shell $(CC) -print-file-name=include)