Page MenuHomeFreeBSD add conditions for building _pie.a archives

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



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

MFC after: 1 week

Diff Detail

R10 FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
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.