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)
Fri, Mar 8, 12:06 AM
Unknown Object (File)
Feb 16 2024, 8:02 PM
Unknown Object (File)
Dec 20 2023, 2:55 AM
Unknown Object (File)
Dec 12 2023, 3:02 PM
Unknown Object (File)
Oct 10 2023, 7:23 PM
Unknown Object (File)
Sep 11 2023, 4:16 AM
Unknown Object (File)
Aug 17 2023, 1:51 PM
Unknown Object (File)
Aug 16 2023, 9:36 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.