Page MenuHomeFreeBSD

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

Authored by emaste on Sep 12 2021, 4:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 4 2024, 1:25 PM
Unknown Object (File)
Oct 3 2024, 9:57 PM
Unknown Object (File)
Oct 3 2024, 9:41 AM
Unknown Object (File)
Oct 1 2024, 4:29 AM
Unknown Object (File)
Sep 24 2024, 8:07 PM
Unknown Object (File)
Sep 24 2024, 5:22 PM
Unknown Object (File)
Sep 23 2024, 9:03 PM
Unknown Object (File)
Sep 23 2024, 7:56 AM
Subscribers

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
rG FreeBSD src repository
Lint
Lint Not Applicable
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.Sep 13 2021, 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.