summaryrefslogtreecommitdiffstats
path: root/src/binutils.mk
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2016-08-17 06:34:53 (GMT)
committerBoris Nagaev <bnagaev@gmail.com>2016-10-23 14:59:21 (GMT)
commitc255ff8b5a4ab6b097cd3d9f76a28a93dcf510d4 (patch)
tree3ad73e9855299ea697f0f8d700b3461ba8b7d8dc /src/binutils.mk
parent0eeffd4d39b06aadc3a3b60a7fe16006f2791094 (diff)
downloadmxe-c255ff8b5a4ab6b097cd3d9f76a28a93dcf510d4.zip
mxe-c255ff8b5a4ab6b097cd3d9f76a28a93dcf510d4.tar.gz
mxe-c255ff8b5a4ab6b097cd3d9f76a28a93dcf510d4.tar.bz2
Add options to strip toolchain, executables, and libs
Minimal implementation to strip the [largest files][lf-gist] by default, mostly made up of gcc/binutils and test programs. gdal and geos both produce large libraries, but the libs themselves aren't worth stripping, it's the 20 odd programs produced by gdal with those libs statically linked that consume the most space. I'm leaving these undocumented as the defaults seems reasonable and the interface may well change when we enable debug/release variants. closes #985 closes #1249 [lf-gist]:https://github.com/mxe/mxe/issues/1249#issuecomment-193392038
Diffstat (limited to 'src/binutils.mk')
-rw-r--r--src/binutils.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/binutils.mk b/src/binutils.mk
index 768a852..b049bc0 100644
--- a/src/binutils.mk
+++ b/src/binutils.mk
@@ -33,7 +33,7 @@ define $(PKG)_BUILD
--disable-shared \
--disable-werror
$(MAKE) -C '$(1)' -j '$(JOBS)'
- $(MAKE) -C '$(1)' -j 1 install
+ $(MAKE) -C '$(1)' -j 1 $(INSTALL_STRIP_TOOLCHAIN)
rm -f $(addprefix $(PREFIX)/$(TARGET)/bin/, ar as dlltool ld ld.bfd nm objcopy objdump ranlib strip)
endef