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)
Mon, Mar 23, 7:38 AM
Unknown Object (File)
Sun, Mar 22, 7:57 PM
Unknown Object (File)
Sun, Mar 22, 7:51 AM
Unknown Object (File)
Fri, Mar 20, 7:00 AM
Unknown Object (File)
Thu, Mar 19, 5:15 PM
Unknown Object (File)
Wed, Mar 18, 11:41 PM
Unknown Object (File)
Wed, Mar 18, 2:58 PM
Unknown Object (File)
Thu, Mar 12, 4:39 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 Not Applicable
Unit
Tests Not Applicable

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