diff --git a/package/pkg-meson.mk b/package/pkg-meson.mk index a57820d4d2..a55063d58e 100644 --- a/package/pkg-meson.mk +++ b/package/pkg-meson.mk @@ -91,6 +91,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 \ + -Db_pie=$(if $(BR2_TOOLCHAIN_SUPPORTS_PIE),true,false) \ -Dstrip=false \ -Dbuild.pkg_config_path=$$(HOST_DIR)/lib/pkgconfig \ $$($$(PKG)_CONF_OPTS) \