summaryrefslogtreecommitdiffstats
path: root/plugins
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 /plugins
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 'plugins')
-rw-r--r--plugins/examples/host-toolchain/binutils-host.mk3
-rw-r--r--plugins/examples/host-toolchain/gcc-host.mk2
2 files changed, 2 insertions, 3 deletions
diff --git a/plugins/examples/host-toolchain/binutils-host.mk b/plugins/examples/host-toolchain/binutils-host.mk
index 5729e41..67aedb4 100644
--- a/plugins/examples/host-toolchain/binutils-host.mk
+++ b/plugins/examples/host-toolchain/binutils-host.mk
@@ -24,8 +24,7 @@ define $(PKG)_BUILD
--prefix='$(PREFIX)/$(TARGET)' \
--program-prefix='$(TARGET)-' \
--host='$(TARGET)',\
- $(subst install, install-strip,\
- $(binutils_BUILD)))
+ $(binutils_BUILD))
# install unprefixed versions also
for p in $($(PKG)_PROGS); do \
diff --git a/plugins/examples/host-toolchain/gcc-host.mk b/plugins/examples/host-toolchain/gcc-host.mk
index db3d266..8dd35da 100644
--- a/plugins/examples/host-toolchain/gcc-host.mk
+++ b/plugins/examples/host-toolchain/gcc-host.mk
@@ -39,7 +39,7 @@ define $(PKG)_BUILD
$($(PKG)_CONFIGURE_OPTS)
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)'
- $(MAKE) -C '$(BUILD_DIR)' -j 1 install-strip
+ $(MAKE) -C '$(BUILD_DIR)' -j 1 $(INSTALL_STRIP_TOOLCHAIN)
# shared libgcc isn't installed to version-specific locations
# so install correctly to simplify cleanup (see gcc.mk)