Change libkse back to libpthread and make it the default

thread library for i386, amd64, and ia64.  For alpha
and sparc64 the library is not changed and remains libkse,
and links are installed so that libpthread -> libc_r.

The gcc -pthread option will be changed in a separate
commit so that it links to -lpthread instead of -lc_r.

Approved by:	re@
This commit is contained in:
Daniel Eischen 2004-01-30 12:13:17 +00:00
parent 3aa9752e00
commit bd224d495e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=125230
3 changed files with 18 additions and 0 deletions

View File

@ -25,4 +25,14 @@ PRECIOUSLIB= yes
.include "${.CURDIR}/uthread/Makefile.inc"
.include "${.CURDIR}/sys/Makefile.inc"
.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc64"
SYMLINKS+=lib${LIB}.a ${LIBDIR}/libpthread.a
.if !defined(NOPIC)
SYMLINKS+=lib${LIB}.so ${SHLIBDIR}/libpthread.so
.endif
.if !defined(NOPROFILE)
SYMLINKS+=lib${LIB}_p.a ${LIBDIR}/libpthread.a
.endif
.endif
.include <bsd.lib.mk>

View File

@ -7,7 +7,11 @@
# To included legacy CSRG sccsid strings, add -DLIBC_SCCS and -DSYSLIBC_SCCS
# (for system call stubs) to CFLAGS below. -DSYSLIBC_SCCS affects just the
# system call stubs.
.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc64"
LIB=kse
.else
LIB=pthread
.endif
SHLIB_MAJOR= 1
CFLAGS+=-DPTHREAD_KERNEL
CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \

View File

@ -7,7 +7,11 @@
# To included legacy CSRG sccsid strings, add -DLIBC_SCCS and -DSYSLIBC_SCCS
# (for system call stubs) to CFLAGS below. -DSYSLIBC_SCCS affects just the
# system call stubs.
.if ${MACHINE_ARCH} == "alpha" || ${MACHINE_ARCH} == "sparc64"
LIB=kse
.else
LIB=pthread
.endif
SHLIB_MAJOR= 1
CFLAGS+=-DPTHREAD_KERNEL
CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \