]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
bsd.lib.mk: add conditions for building _pie.a archives
authorEd Maste <emaste@FreeBSD.org>
Sun, 12 Sep 2021 16:45:50 +0000 (12:45 -0400)
committerEd Maste <emaste@FreeBSD.org>
Mon, 20 Sep 2021 00:31:35 +0000 (20:31 -0400)
commit95ea87898f2365015e1a8473e5c50e5126844648
tree5c2ebb73de6fbb97016a10fd56ad6173f8c358b6
parent4e762fab7085a414480a423848b03308bfc225c2
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)
share/mk/bsd.lib.mk