diff options
author | Philip Guenther <guenther@cvs.openbsd.org> | 2016-04-02 19:56:54 +0000 |
---|---|---|
committer | Philip Guenther <guenther@cvs.openbsd.org> | 2016-04-02 19:56:54 +0000 |
commit | 4bd70a202ef4f88bc788d55769964a6928490376 (patch) | |
tree | 2f0aade3c8c54e06f43f27652bfa5ddb5167ac77 /lib/librthread/Makefile | |
parent | a55e1169da61fa81974081006c42e49a98442ad9 (diff) |
Wrap <pthread.h> and <pthread_np.h> to eliminate PLT entries for internal
references. Use _thread_pagesize for the semaphore mmap size instead of
calling getpagesize() each time.
ok beck@
Diffstat (limited to 'lib/librthread/Makefile')
-rw-r--r-- | lib/librthread/Makefile | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/librthread/Makefile b/lib/librthread/Makefile index c4fae147425..28d35a0052b 100644 --- a/lib/librthread/Makefile +++ b/lib/librthread/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.40 2015/05/19 20:50:06 guenther Exp $ +# $OpenBSD: Makefile,v 1.41 2016/04/02 19:56:53 guenther Exp $ LIB=pthread LIBCSRCDIR= ${.CURDIR}/../libc @@ -6,7 +6,8 @@ LIBCSRCDIR= ${.CURDIR}/../libc CFLAGS+=-Wall -g -Werror -Wshadow CFLAGS+=-Wmissing-prototypes -Wstrict-prototypes CFLAGS+=-Wsign-compare -CFLAGS+=-I${LIBCSRCDIR}/arch/${MACHINE_CPU} -I${LIBCSRCDIR}/include +CFLAGS+=-I${.CURDIR} -include namespace.h \ + -I${LIBCSRCDIR}/arch/${MACHINE_CPU} -I${LIBCSRCDIR}/include CDIAGFLAGS= LDADD = -Wl,-znodelete,-zinitfirst,-znodlopen @@ -47,3 +48,5 @@ SRCDIR= ${.CURDIR}/../libpthread .include "${SRCDIR}/include/Makefile.inc" .include "${SRCDIR}/man/Makefile.inc" .include <bsd.lib.mk> + +${OBJS} ${GOBJS} ${POBJS} ${SOBJS} ${DOBJS}: ${.CURDIR}/namespace.h |