tools/meson: static host and both libraries
Host packages typically are statically linked to avoid rpath issues and to avoid libraries not being found as a result. With target packages, both libraries make the most sense as InstallDev typically installs both, giving packages flexibility. Default this behavior. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
fcdc629144
commit
d08ff66fcd
|
@ -100,6 +100,7 @@ define Host/Configure/Meson
|
||||||
$(call Meson, \
|
$(call Meson, \
|
||||||
setup \
|
setup \
|
||||||
--native-file $(HOST_BUILD_DIR)/openwrt-native.txt \
|
--native-file $(HOST_BUILD_DIR)/openwrt-native.txt \
|
||||||
|
-Ddefault_library=static \
|
||||||
$(MESON_HOST_ARGS) \
|
$(MESON_HOST_ARGS) \
|
||||||
$(MESON_HOST_BUILD_DIR) \
|
$(MESON_HOST_BUILD_DIR) \
|
||||||
$(MESON_HOST_BUILD_DIR)/.., \
|
$(MESON_HOST_BUILD_DIR)/.., \
|
||||||
|
@ -126,6 +127,7 @@ define Build/Configure/Meson
|
||||||
--buildtype plain \
|
--buildtype plain \
|
||||||
--native-file $(PKG_BUILD_DIR)/openwrt-native.txt \
|
--native-file $(PKG_BUILD_DIR)/openwrt-native.txt \
|
||||||
--cross-file $(PKG_BUILD_DIR)/openwrt-cross.txt \
|
--cross-file $(PKG_BUILD_DIR)/openwrt-cross.txt \
|
||||||
|
-Ddefault_library=both \
|
||||||
$(MESON_ARGS) \
|
$(MESON_ARGS) \
|
||||||
$(MESON_BUILD_DIR) \
|
$(MESON_BUILD_DIR) \
|
||||||
$(MESON_BUILD_DIR)/.., \
|
$(MESON_BUILD_DIR)/.., \
|
||||||
|
|
Loading…
Reference in New Issue