- The Core Planners: [email protected]
Binary package
Binary packages can be set as runtime or build time dependencies. See Defining your dependencies for more information.
To add core/binutils as a depdendency, you can add one of the following to your plan file.
pkg_build_deps=(core/binutils)
pkg_deps=(core/binutils)
To install this plan, you should run the following commands to first install, and then link the binaries this plan creates.
hab pkg install core/binutils
» Installing core/binutils
☁ Determining latest version of core/binutils in the 'stable' channel
☛ Verifying core/binutils/2.32/20200305174809
...
✓ Installed core/binutils/2.32/20200305174809
★ Install of core/binutils/2.32/20200305174809 complete with 1 new packages installed.
hab pkg binlink core/binutils
» Binlinking ld from core/binutils into /bin
★ Binlinked ld from core/binutils/2.32/20200305174809 to /bin/ld
You can now use the binary as normal:
/bin/ld --help
or ld --help
Usage: /hab/pkgs/core/binutils/2.32/20200305174809/bin/ld.bfd.real [options] file...
Options:
-a KEYWORD Shared library control for HP/UX compatibility
-A ARCH, --architecture ARCH
Set architecture
-b TARGET, --format TARGET Specify target for following input files
-c FILE, --mri-script FILE Read MRI format linker script
-d, -dc, -dp Force common symbols to be defined
--force-group-allocation Force group members out of groups
...