mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 04:53:28 +00:00
bsd.lib.mk: decouple lib*_pic.a from TOOLCHAIN build knob
A user may use a tool chain from a package or just use an existing
tool chain from a previous installation. There is no reason for this
to disable the installation of lib${LIB}_pic.a.
This also means we don't need to force MK_TOOLCHAIN=yes in lib/libc.
This reverts part of commit c0f5aeb032
.
Reviewed by: jrtc27
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D39917
This commit is contained in:
parent
ed2e50508c
commit
5f2e84015d
@ -6,9 +6,6 @@ SHLIBDIR?= /lib
|
||||
|
||||
.include <src.opts.mk>
|
||||
|
||||
# Force building of libc_pic.a
|
||||
MK_TOOLCHAIN= yes
|
||||
|
||||
LIBC_SRCTOP?= ${.CURDIR}
|
||||
|
||||
# Pick the current architecture directory for libc. In general, this is
|
||||
|
@ -378,7 +378,7 @@ ${SHLIB_NAME}.debug: ${SHLIB_NAME_FULL}
|
||||
.endif
|
||||
.endif #defined(SHLIB_NAME)
|
||||
|
||||
.if defined(INSTALL_PIC_ARCHIVE) && defined(LIB) && !empty(LIB) && ${MK_TOOLCHAIN} != "no"
|
||||
.if defined(INSTALL_PIC_ARCHIVE) && defined(LIB) && !empty(LIB)
|
||||
_LIBS+= lib${LIB_PRIVATE}${LIB}_pic.a
|
||||
|
||||
lib${LIB_PRIVATE}${LIB}_pic.a: ${SOBJS}
|
||||
@ -540,7 +540,7 @@ _libinstall:
|
||||
.endif # SHLIB_LDSCRIPT
|
||||
.endif # SHLIB_LINK
|
||||
.endif # SHIB_NAME
|
||||
.if defined(INSTALL_PIC_ARCHIVE) && defined(LIB) && !empty(LIB) && ${MK_TOOLCHAIN} != "no"
|
||||
.if defined(INSTALL_PIC_ARCHIVE) && defined(LIB) && !empty(LIB)
|
||||
${INSTALL} ${TAG_ARGS:D${TAG_ARGS},dev} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
|
||||
${_INSTALLFLAGS} lib${LIB}_pic.a ${DESTDIR}${_LIBDIR}/
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user