summaryrefslogtreecommitdiff
path: root/libpthread/Makefile
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-12-26 09:00:59 +0000
committerMike Frysinger <vapier@gentoo.org>2004-12-26 09:00:59 +0000
commitcacaa7f28b18cafc0fbff970ab377294c8b45672 (patch)
tree2ccdd95fa4ee332943c8985be10df38edb0ca8fe /libpthread/Makefile
parent4485e5f349663254f17fa2bb435c3ff8109341ac (diff)
Peter S. Mazinger: make sure the ld RELRO and NOW options are independent options
Diffstat (limited to 'libpthread/Makefile')
-rw-r--r--libpthread/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/libpthread/Makefile b/libpthread/Makefile
index 37985e7ed..9d701c8d8 100644
--- a/libpthread/Makefile
+++ b/libpthread/Makefile
@@ -34,18 +34,24 @@ DIRS=
ifeq ($(strip $(UCLIBC_HAS_THREADS)),y)
DIRS+=linuxthreads
LDFLAGS_THREAD:= $(CPU_LDFLAGS-y) -shared --warn-common --warn-once -z combreloc -z defs
-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_THREAD+=-z relro
endif
ifeq ($(UCLIBC_BUILD_NOW),y)
LDFLAGS_THREAD+=-z now
endif
+ifeq ($(strip $(PTHREADS_DEBUG_SUPPORT)),y)
+ DIRS+=linuxthreads_db
+ LDFLAGS_THREAD_DB:= $(CPU_LDFLAGS-y) -shared --warn-common --warn-once -z combreloc
endif
ifeq ($(DODEBUG),n)
LDFLAGS_THREAD_DB+=-s
+ifeq ($(UCLIBC_BUILD_RELRO),y)
+ LDFLAGS_THREAD_DB+=-z relro
+endif
+ifeq ($(UCLIBC_BUILD_NOW),y)
+ LDFLAGS_THREAD_DB+=-z now
+endif
endif
endif