glib2: remove static library hack 13538/head
authorRosen Penev <rosenp@gmail.com>
Tue, 29 Sep 2020 05:37:48 +0000 (22:37 -0700)
committerRosen Penev <rosenp@gmail.com>
Thu, 1 Oct 2020 01:33:32 +0000 (18:33 -0700)
There's a better and faster way to do this.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
libs/glib2/Makefile

index 1fa58fa392bd707759e4a1f3e359bb3126846c72..2331cbe859321658e6386cfef86d853ac1b7d345 100644 (file)
@@ -49,6 +49,7 @@ TARGET_CFLAGS += -ffunction-sections -fdata-sections
 TARGET_LDFLAGS += -Wl,--gc-sections -liconv $(if $(INTL_FULL),-lintl)
 
 COMP_ARGS= \
+       -Ddefault_library=both \
        -Diconv=external \
        -Dselinux=disabled \
        -Dlibmount=disabled \
@@ -69,22 +70,6 @@ COMP_ARGS= \
 MESON_HOST_ARGS += $(COMP_ARGS) -Dxattr=false
 MESON_ARGS += $(COMP_ARGS) -Dxattr=true -Db_lto=true
 
-# hack to compile static libraries
-define Build/Compile
-       $(call Build/Compile/Meson)
-       $(call Ninja,-C $(MESON_BUILD_DIR) install,DESTDIR="$(PKG_INSTALL_DIR)")
-       $(call Meson, \
-               --reconfigure \
-               --buildtype plain \
-               --native-file $(PKG_BUILD_DIR)/openwrt-native.txt \
-               --cross-file $(PKG_BUILD_DIR)/openwrt-cross.txt \
-               -Ddefault_library=static \
-               $(MESON_ARGS) \
-               $(MESON_BUILD_DIR) \
-               $(PKG_BUILD_DIR), \
-               $(MESON_VARS))
-endef
-
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/bin
        $(CP) \