Skip to contentSkip to conversation

pkg-meson: Strip binaries on install

PATCH New Gleb Mazovetskiy 1 participant 1 message Dec 25, 2020 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pkg-meson: Strip binaries on install

Strips binaries on install by adding -Dstrip=true to the default configuration options.

---
 package/pkg-meson.mk | 2 ++
 1 file changed, 2 insertions(+)
package/pkg-meson.mk +2 -0
index 3a34ba703b..7890219b20 100644
@@ -88,6 +88,7 @@ define $(2)_CONFIGURE_CMDS
 		--buildtype=$(if $(BR2_ENABLE_DEBUG),debug,release) \
 		--cross-file=$$($$(PKG)_SRCDIR)/build/cross-compilation.conf \
 		-Dbuild.pkg_config_path=$$(HOST_DIR)/lib/pkgconfig \
+		-Dstrip=true \
 		$$($$(PKG)_CONF_OPTS) \
 		$$($$(PKG)_SRCDIR) $$($$(PKG)_SRCDIR)/build
 endef
@@ -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
Signature · 1 line
2.27.0