diff options
author | 2002-11-16 05:01:26 +0000 | |
---|---|---|
committer | 2002-11-16 05:01:26 +0000 | |
commit | 302ab5e95b1d2ab28148228689d68760784f43fa (patch) | |
tree | 788478f060127cf9a7e1f866852e7986c379a775 /lib/libpthread | |
parent | From NetBSD (bouyer@): (diff) | |
download | wireguard-openbsd-302ab5e95b1d2ab28148228689d68760784f43fa.tar.xz wireguard-openbsd-302ab5e95b1d2ab28148228689d68760784f43fa.zip |
Enable libpthread, kind of....
The library is installed as libnpthread, not libpthread. This gets
around broken autoconf ports that attempt to link using both
-lpthread and -pthread.
The next step will be to change the gcc -pthread flag to use this lib
instead of libc_r.
Diffstat (limited to 'lib/libpthread')
-rw-r--r-- | lib/libpthread/Makefile | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/libpthread/Makefile b/lib/libpthread/Makefile index e6f08bd6cde..c537c4eca97 100644 --- a/lib/libpthread/Makefile +++ b/lib/libpthread/Makefile @@ -1,8 +1,10 @@ -# $OpenBSD: Makefile,v 1.14 2002/11/12 20:10:18 marc Exp $ +# $OpenBSD: Makefile,v 1.15 2002/11/16 05:01:26 marc Exp $ # # The pthread library is formed from the FreeBSD uthread sources of -# libc_r, and exploits weak symbols in libc. +# libc_r, and exploits weak symbols in libc. It is installed as +# libnpthread (new pthread) so it will not be picked up in addition to +# libc_r by misbehaving ports. # LIBC_RSRCDIR= ${.CURDIR}/../libc_r @@ -10,7 +12,7 @@ LIBCSRCDIR= ${.CURDIR}/../libc .PATH: ${LIBC_RSRCDIR} -LIB= pthread +LIB= npthread LINTFLAGS= -z CFLAGS+= -DPTHREAD_KERNEL -D_POSIX_THREADS -D_THREAD_SAFE -Wall CFLAGS+= -I${LIBC_RSRCDIR}/uthread |