summaryrefslogtreecommitdiffstats
path: root/src/gcc.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/gcc.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/gcc.mk')
-rw-r--r--src/gcc.mk8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gcc.mk b/src/gcc.mk
index 038d728..3c4d786 100644
--- a/src/gcc.mk
+++ b/src/gcc.mk
@@ -82,7 +82,7 @@ define $(PKG)_BUILD_mingw-w64
# build standalone gcc
$($(PKG)_CONFIGURE)
$(MAKE) -C '$(1).build' -j '$(JOBS)' all-gcc
- $(MAKE) -C '$(1).build' -j 1 install-gcc
+ $(MAKE) -C '$(1).build' -j 1 $(INSTALL_STRIP_TOOLCHAIN)-gcc
# build mingw-w64-crt
mkdir '$(1).crt-build'
@@ -91,19 +91,19 @@ define $(PKG)_BUILD_mingw-w64
--prefix='$(PREFIX)/$(TARGET)' \
@gcc-crt-config-opts@
$(MAKE) -C '$(1).crt-build' -j '$(JOBS)' || $(MAKE) -C '$(1).crt-build' -j '$(JOBS)'
- $(MAKE) -C '$(1).crt-build' -j 1 install
+ $(MAKE) -C '$(1).crt-build' -j 1 $(INSTALL_STRIP_TOOLCHAIN)
# build posix threads
mkdir '$(1).pthread-build'
cd '$(1).pthread-build' && '$(1)/$(mingw-w64_SUBDIR)/mingw-w64-libraries/winpthreads/configure' \
$(MXE_CONFIGURE_OPTS)
$(MAKE) -C '$(1).pthread-build' -j '$(JOBS)' || $(MAKE) -C '$(1).pthread-build' -j '$(JOBS)'
- $(MAKE) -C '$(1).pthread-build' -j 1 install
+ $(MAKE) -C '$(1).pthread-build' -j 1 $(INSTALL_STRIP_TOOLCHAIN)
# build rest of gcc
cd '$(1).build'
$(MAKE) -C '$(1).build' -j '$(JOBS)'
- $(MAKE) -C '$(1).build' -j 1 install
+ $(MAKE) -C '$(1).build' -j 1 $(INSTALL_STRIP_TOOLCHAIN)
# shared libgcc isn't installed to version-specific locations
# so install correctly to simplify cleanup