Page MenuHomeFreeBSD

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

Authored by jrm on Sat, Jan 4, 11:19 PM.
Tags
None
Referenced Files
F106862355: D48324.diff
Mon, Jan 6, 2:18 PM
Unknown Object (File)
Sun, Jan 5, 7:00 PM
Unknown Object (File)
Sun, Jan 5, 3:18 PM
Unknown Object (File)
Sun, Jan 5, 3:15 PM
Unknown Object (File)
Sun, Jan 5, 1:51 PM
Unknown Object (File)
Sat, Jan 4, 11:21 PM
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.Sat, Jan 4, 11:19 PM
jrm created this revision.

Minor documentation tweak (s/if/when/)

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