From 4c7b8e46dd62891a15569e870093e0333bb3a057 Mon Sep 17 00:00:00 2001 From: Philip Guenther Date: Tue, 19 May 2015 20:50:07 +0000 Subject: 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@ --- lib/librthread/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/librthread/Makefile') 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 \ -- cgit v1.2.3