diff options
author | Ed Maste <emaste@FreeBSD.org> | 2021-09-12 16:45:50 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2021-09-20 00:31:35 +0000 |
commit | 95ea87898f2365015e1a8473e5c50e5126844648 (patch) | |
tree | 5c2ebb73de6fbb97016a10fd56ad6173f8c358b6 | |
parent | 4e762fab7085a414480a423848b03308bfc225c2 (diff) | |
download | src-95ea87898f2365015e1a8473e5c50e5126844648.tar.gz src-95ea87898f2365015e1a8473e5c50e5126844648.zip |
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
(cherry picked from commit 7c0226cad3f36a05832f9c5216dfa3dadb91c92d)
-rw-r--r-- | share/mk/bsd.lib.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index 3d7fe4a13343..1b98ad36280e 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -358,7 +358,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} |