Allow DEFAULT_THREAD_LIB to be set from /etc/src.conf.

Submitted by:	ru
This commit is contained in:
deischen 2007-05-17 04:54:35 +00:00
parent 5907a150d5
commit 7d5de3a8a3
4 changed files with 16 additions and 16 deletions

View File

@ -8,12 +8,12 @@
# (for system call stubs) to CFLAGS below. -DSYSLIBC_SCCS affects just the
# system call stubs.
.if defined(DEFAULT_THREAD_LIB) && (${DEFAULT_THREAD_LIB} == "libc_r")
SHLIBDIR?= /lib
.endif
.include <bsd.own.mk>
.if ${DEFAULT_THREAD_LIB} == "libc_r"
SHLIBDIR= /lib
.endif
LIB=c_r
SHLIB_MAJOR= 6
CFLAGS+=-DPTHREAD_KERNEL

View File

@ -8,12 +8,12 @@
# (for system call stubs) to CFLAGS below. -DSYSLIBC_SCCS affects just the
# system call stubs.
.if defined(DEFAULT_THREAD_LIB) && (${DEFAULT_THREAD_LIB} == "libpthread")
SHLIBDIR?= /lib
.endif
.include <bsd.own.mk>
.if ${DEFAULT_THREAD_LIB} == "libpthread"
SHLIBDIR= /lib
.endif
LIB=kse
SHLIB_MAJOR= 2
CFLAGS+=-DPTHREAD_KERNEL

View File

@ -8,12 +8,12 @@
# (for system call stubs) to CFLAGS below. -DSYSLIBC_SCCS affects just the
# system call stubs.
.if defined(DEFAULT_THREAD_LIB) && (${DEFAULT_THREAD_LIB} == "libpthread")
SHLIBDIR?= /lib
.endif
.include <bsd.own.mk>
.if ${DEFAULT_THREAD_LIB} == "libpthread"
SHLIBDIR= /lib
.endif
LIB=kse
SHLIB_MAJOR= 2
CFLAGS+=-DPTHREAD_KERNEL

View File

@ -8,12 +8,12 @@
# (for system call stubs) to CFLAGS below. -DSYSLIBC_SCCS affects just the
# system call stubs.
.if !defined(DEFAULT_THREAD_LIB) || (${DEFAULT_THREAD_LIB} == "libthr")
SHLIBDIR?= /lib
.endif
.include <bsd.own.mk>
.if ${DEFAULT_THREAD_LIB} == "libthr"
SHLIBDIR= /lib
.endif
LIB=thr
SHLIB_MAJOR= 2
CFLAGS+=-DPTHREAD_KERNEL