aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Gleb Mazovetskiy <glex.spb@gmail.com>2020-12-25 12:15:59 +0000
committerGravatar Peter Korsgaard <peter@korsgaard.com>2020-12-27 09:20:41 +0100
commit84bbcbae7a784c52bb110bc8db1b0f3ffa848d1f (patch)
treeaa3d2a9c949d3d2b598f33caaea1bbe48b2c923f
parent6d02ca15508afe0f2ec749049a851727ed5c8328 (diff)
downloadbuildroot-84bbcbae7a784c52bb110bc8db1b0f3ffa848d1f.tar.gz
buildroot-84bbcbae7a784c52bb110bc8db1b0f3ffa848d1f.tar.bz2
package/pkg-meson: force-disable binary stripping
In buildroot, stripping for the target is configured and implemented with the global `BR2_STRIP_strip` option that drive the stripping in the target-finalize step. So, we explicitly disable stripping at build time for the target variants. For the host variants, however, we don't much care about symbols and stuff, but smaller executables will hopefully load faster than bigger ones (disputable, given that sections in ELF files are paged-in on-demand), so we explictly enable stripping. Signed-off-by: Gleb Mazovetskiy <glex.spb@gmail.com> [yann.morin.1998@free.fr: - add burb about the target-finalize step - enable stripping for host variants ] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr> (cherry picked from commit 3f39f902b3cd685c3c971941138e0df50947737c) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/pkg-meson.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/pkg-meson.mk b/package/pkg-meson.mk
index 3a34ba703b..e0b843dc3c 100644
--- a/package/pkg-meson.mk
+++ b/package/pkg-meson.mk
@@ -87,6 +87,7 @@ define $(2)_CONFIGURE_CMDS
--default-library=$(if $(BR2_STATIC_LIBS),static,shared) \
--buildtype=$(if $(BR2_ENABLE_DEBUG),debug,release) \
--cross-file=$$($$(PKG)_SRCDIR)/build/cross-compilation.conf \
+ -Dstrip=false \
-Dbuild.pkg_config_path=$$(HOST_DIR)/lib/pkgconfig \
$$($$(PKG)_CONF_OPTS) \
$$($$(PKG)_SRCDIR) $$($$(PKG)_SRCDIR)/build
@@ -105,6 +106,7 @@ define $(2)_CONFIGURE_CMDS
--localstatedir=$$(HOST_DIR)/var \
--default-library=shared \
--buildtype=release \
+ -Dstrip=true \
$$($$(PKG)_CONF_OPTS) \
$$($$(PKG)_SRCDIR) $$($$(PKG)_SRCDIR)/build
endef