pugixml: build as static

Upstream recommends static. There is also onle one package that depends
on this.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev
2020-05-07 17:30:53 -07:00
parent 0f829d0246
commit c88bf0ef2c
+2 -9
View File
@@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=pugixml PKG_NAME:=pugixml
PKG_VERSION:=1.10 PKG_VERSION:=1.10
PKG_RELEASE:=1 PKG_RELEASE:=2
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/zeux/pugixml/releases/download/v$(PKG_VERSION) PKG_SOURCE_URL:=https://github.com/zeux/pugixml/releases/download/v$(PKG_VERSION)
@@ -29,6 +29,7 @@ define Package/pugixml
TITLE:=pugixml TITLE:=pugixml
URL:=https://github.com/zeux/pugixml URL:=https://github.com/zeux/pugixml
DEPENDS:=+libstdcpp DEPENDS:=+libstdcpp
BUILDONLY:=1
endef endef
define Package/pugixml/description define Package/pugixml/description
@@ -40,14 +41,6 @@ define Package/pugixml/description
(which happen automatically during parsing/saving). (which happen automatically during parsing/saving).
endef endef
CMAKE_OPTIONS += \
-DBUILD_SHARED_LIBS=ON
TARGET_CXXFLAGS += -flto TARGET_CXXFLAGS += -flto
define Package/pugixml/install
$(INSTALL_DIR) $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpugixml.so* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,pugixml)) $(eval $(call BuildPackage,pugixml))