Page MenuHomeFreeBSD

Mk/Uses/elfctl.mk: Add `build` and `stage` arguments
ClosedPublic

Authored by jrm on Jan 4 2025, 11:19 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 8, 4:16 AM
Unknown Object (File)
Mon, Apr 27, 12:58 PM
Unknown Object (File)
Tue, Apr 21, 9:39 AM
Unknown Object (File)
Apr 20 2026, 12:50 AM
Unknown Object (File)
Apr 12 2026, 5:14 AM
Unknown Object (File)
Apr 7 2026, 6:33 PM
Unknown Object (File)
Apr 6 2026, 7:18 AM
Unknown Object (File)
Mar 23 2026, 7:38 AM
Subscribers
None

Details

Summary

Introduce new arguments, build and stage, to control the location
and timing of ELF feature flag modifications.

Files listed in ELF_FEATURES are interpreted as relative to:

  • ${BUILD_WRKSRC} when the build argument is supplied
  • ${STAGEDIR} when the stage argument is supplied

Operating on binaries under ${STAGEDIR} is useful when binaries are
modified after the build phase. Conversely, working with binaries under
${BUILD_WRKSRC} is preferable when test targets are run against the
build tree.

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 61505
Build 58389: arc lint + arc unit

Event Timeline

jrm requested review of this revision.Jan 4 2025, 11:19 PM
jrm created this revision.

Minor documentation tweak (s/if/when/)

This revision is now accepted and ready to land.Jan 5 2025, 7:08 AM