diff options
author | Tony Theodore <tonyt@logyst.com> | 2016-08-08 09:45:57 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2016-08-08 09:45:57 (GMT) |
commit | ef80a64393032cd90c5ff7453d612b6212625221 (patch) | |
tree | 39397e17d5b74b1bb9e0328058d638e476d0c40c /plugins/examples/host-toolchain/binutils-host.mk | |
parent | bb7f5c57f5278a80b22d9b8c3e9bc4c48b14e80a (diff) | |
download | mxe-ef80a64393032cd90c5ff7453d612b6212625221.zip mxe-ef80a64393032cd90c5ff7453d612b6212625221.tar.gz mxe-ef80a64393032cd90c5ff7453d612b6212625221.tar.bz2 |
host-tools plugin: install prefixed binutils and strip binaries
Diffstat (limited to 'plugins/examples/host-toolchain/binutils-host.mk')
-rw-r--r-- | plugins/examples/host-toolchain/binutils-host.mk | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/plugins/examples/host-toolchain/binutils-host.mk b/plugins/examples/host-toolchain/binutils-host.mk index bed45ea..72d9acd 100644 --- a/plugins/examples/host-toolchain/binutils-host.mk +++ b/plugins/examples/host-toolchain/binutils-host.mk @@ -15,12 +15,24 @@ define $(PKG)_UPDATE echo $(binutils_VERSION) endef +$(PKG)_PROGS := addr2line ar as c++filt dlltool dllwrap elfedit gprof \ + ld.bfd ld nm objcopy objdump ranlib readelf size strings \ + strip windmc windres + define $(PKG)_BUILD $(subst --disable-werror,\ --disable-werror \ --prefix='$(PREFIX)/$(TARGET)' \ + --program-prefix='$(TARGET)-' \ --host='$(TARGET)',\ - $(binutils_BUILD)) + $(subst install, install-strip,\ + $(binutils_BUILD))) + + # install unprefixed versions also + for p in $($(PKG)_PROGS); do \ + cp "$(PREFIX)/$(TARGET)/bin/$(TARGET)-$$p.exe" \ + "$(PREFIX)/$(TARGET)/bin/$$p.exe" ; \ + done # tools seem to be duplicates of '$(PREFIX)/$(TARGET)' rm -rf '$(PREFIX)/$(TARGET)/$(TARGET)' |