From 6ae64d25832babd791a3991c34f23c90fd4966ae Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Wed, 22 Dec 2004 21:24:32 +0000 Subject: Patch from Peter S. Mazinger: Seperate out security features into a separate menu --- Rules.mak | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Rules.mak') 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) -- cgit v1.2.3