diff options
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)' |