apk: move common meson args to its own variable
authorJonas Gorski <jonas.gorski@gmail.com>
Thu, 14 Nov 2024 11:01:40 +0000 (12:01 +0100)
committerJonas Gorski <jonas.gorski@gmail.com>
Thu, 14 Nov 2024 11:03:14 +0000 (12:03 +0100)
Most apk meson args are shared between host and target builds, so lets
have a common variable for them.

Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
package/system/apk/Makefile

index fec6d5325c7e58766c84c45e5638daf775c56c96..4ce8f21a48ce08546a0889f33475a3e70808468d 100644 (file)
@@ -52,21 +52,20 @@ endef
 MESON_HOST_VARS+=VERSION=$(PKG_VERSION)
 MESON_VARS+=VERSION=$(PKG_VERSION)
 
-MESON_HOST_ARGS += \
-       -Dlua_version=5.1 \
+MESON_COMMON_ARGS = \
        -Dcompressed-help=false \
        -Ddocs=disabled \
+       -Dlua_version=5.1 \
        -Durl_backend=wget \
-       -Dcrypto_backend=openssl \
        -Dzstd=false
 
+MESON_HOST_ARGS += \
+       $(MESON_COMMON_ARGS) \
+       -Dcrypto_backend=openssl
+
 MESON_ARGS += \
-       -Dlua_version=5.1 \
-       -Dcompressed-help=false \
-       -Ddocs=disabled \
-       -Durl_backend=wget \
-       -Dcrypto_backend=$(BUILD_VARIANT) \
-       -Dzstd=false
+       $(MESON_COMMON_ARGS) \
+       -Dcrypto_backend=$(BUILD_VARIANT)
 
 HOST_LDFLAGS += \
        -Wl,-rpath $(STAGING_DIR_HOST)/lib