summaryrefslogtreecommitdiff
path: root/libpthread/Makefile
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 /libpthread/Makefile
parent433ccbdd22063df62307459bb9d73b2e9016a5db (diff)
Patch from Peter S. Mazinger:
Seperate out security features into a separate menu
Diffstat (limited to 'libpthread/Makefile')
-rw-r--r--libpthread/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/libpthread/Makefile b/libpthread/Makefile
index 4a763ca78..6a3cc88d1 100644
--- a/libpthread/Makefile
+++ b/libpthread/Makefile
@@ -37,6 +37,12 @@ ifeq ($(strip $(UCLIBC_HAS_THREADS)),y)
ifeq ($(strip $(PTHREADS_DEBUG_SUPPORT)),y)
DIRS+=linuxthreads_db
LDFLAGS_THREAD_DB:= $(CPU_LDFLAGS-y) -shared --warn-common --warn-once -z combreloc
+ifeq ($(UCLIBC_BUILD_RELRO),y)
+ LDFLAGS_PTHREAD_DB+=-z relro
+endif
+ifeq ($(UCLIBC_BUILD_NOW),y)
+ LDFLAGS_PTHREAD_DB+=-z now
+endif
endif
ifeq ($(DODEBUG),n)
LDFLAGS_THREAD_DB+=-s