From 3c42c4abedf3332beb663dd021bd8ea82abc1c34 Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Thu, 29 Nov 2007 21:49:08 +0000 Subject: [PATCH] To reduce the impact of possible removal of the syscalls required by libkse in FreeBSD 8.0, do not build or install static versions of libkse (i.e. libkse*.a) in the default case. Static versions will be built and installed if libthr is not built or if libkse is the default threading library. Discussed on: freebsd-arch MFC after: 3 days --- ObsoleteFiles.inc | 6 ++++++ lib/libkse/Makefile | 9 ++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ObsoleteFiles.inc b/ObsoleteFiles.inc index b7581354723..6ac39ac8349 100644 --- a/ObsoleteFiles.inc +++ b/ObsoleteFiles.inc @@ -14,6 +14,12 @@ # The file is partitioned: OLD_FILES first, then OLD_LIBS and OLD_DIRS last. # +# 20071129: Disabled static versions of libkse by default +.if ${DEFAULT_THREAD_LIB} != "libkse" && ${MK_LIBTHR} != "no" +OLD_FILES+=usr/lib/libkse.a +OLD_FILES+=usr/lib/libkse_p.a +OLD_FILES+=usr/lib/libkse_pic.a +.endif # 20071129: Removed a Solaris compatibility header OLD_FILES+=usr/include/sys/_elf_solaris.h # 20071108: Removed very crunch OLDCARD support file diff --git a/lib/libkse/Makefile b/lib/libkse/Makefile index 8018ce52c42..a2b5ae8f1c8 100644 --- a/lib/libkse/Makefile +++ b/lib/libkse/Makefile @@ -10,12 +10,15 @@ .include -.if (${DEFAULT_THREAD_LIB} == "libkse" || ${MK_LIBTHR} == "no") && \ - ${SHLIBDIR} == "/usr/lib" +.if ${DEFAULT_THREAD_LIB} == "libkse" || ${MK_LIBTHR} == "no" +LIB=kse +.if ${SHLIBDIR} == "/usr/lib" SHLIBDIR= /lib .endif +.else +SHLIB=kse +.endif -LIB=kse SHLIB_MAJOR= 3 CFLAGS+=-DPTHREAD_KERNEL CFLAGS+=-I${.CURDIR}/../libc/include -I${.CURDIR}/thread \