summaryrefslogtreecommitdiff
path: root/lib/librthread/Makefile
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2015-05-19 20:50:07 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2015-05-19 20:50:07 +0000
commit4c7b8e46dd62891a15569e870093e0333bb3a057 (patch)
tree197fdd0a56e1773a44aef3de2136648344d445df /lib/librthread/Makefile
parentf4352fbb496346a0ee56e1982150f65a851753a0 (diff)
Instead of testing for __ELF__ and/or vax, leave out the bits for interfacing
with ld.so locking whenever building NOPIC pointless use of __ELF__ noted by brad@ ok miod@
Diffstat (limited to 'lib/librthread/Makefile')
-rw-r--r--lib/librthread/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/librthread/Makefile b/lib/librthread/Makefile
index 1af81daa7a3..c4fae147425 100644
--- a/lib/librthread/Makefile
+++ b/lib/librthread/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.39 2014/07/16 20:02:17 okan Exp $
+# $OpenBSD: Makefile,v 1.40 2015/05/19 20:50:06 guenther Exp $
LIB=pthread
LIBCSRCDIR= ${.CURDIR}/../libc
@@ -10,6 +10,10 @@ CFLAGS+=-I${LIBCSRCDIR}/arch/${MACHINE_CPU} -I${LIBCSRCDIR}/include
CDIAGFLAGS=
LDADD = -Wl,-znodelete,-zinitfirst,-znodlopen
+.if defined(NOPIC)
+CFLAGS+=-DNO_PIC
+.endif
+
.PATH: ${.CURDIR}/arch/${MACHINE_CPU}
SRCS= rthread.c \
rthread_attr.c \