Page MenuHomeFreeBSD

bsd.lib.mk: add conditions for building _pie.a archives
ClosedPublic

Authored by emaste on Sun, Sep 12, 4:58 PM.

Details

Summary

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, one of these conditions may change in the future.

MFC after: 1 week

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Seems reasonable to me. What is the motivating use case?

This revision is now accepted and ready to land.Mon, Sep 13, 9:13 AM

I have a local change to build _pie also for !INTERNALLIB with an end goal of supporting PIE builds for software out of the base system linking against .a archives.