bsd.lib.mk: add conditions for building _pie.a archives
As with other .a targets, build _pie.a archives only if LIB is set. At present we build _pie.a only for INTERNALLIBs, and none of them include bsd.lib.mk without setting LIB. However, we might want to build _pie.a for non-INTERNALLIBs in the future. Reviewed by: arichardson MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D31920
This commit is contained in:
parent
6e93bdfff3
commit
7c0226cad3
@ -390,7 +390,7 @@ lib${LIB_PRIVATE}${LIB}_nossp_pic.a: ${NOSSPSOBJS}
|
||||
|
||||
.endif # !defined(INTERNALLIB)
|
||||
|
||||
.if defined(INTERNALLIB) && ${MK_PIE} != "no"
|
||||
.if defined(INTERNALLIB) && ${MK_PIE} != "no" && defined(LIB) && !empty(LIB)
|
||||
PIEOBJS+= ${OBJS:.o=.pieo}
|
||||
DEPENDOBJS+= ${PIEOBJS}
|
||||
CLEANFILES+= ${PIEOBJS}
|
||||
|
Loading…
Reference in New Issue
Block a user