log4cplus: Build in parallel
authorRosen Penev <redacted>
Fri, 28 Jun 2019 20:13:03 +0000 (13:13 -0700)
committerRosen Penev <redacted>
Fri, 28 Jun 2019 21:34:22 +0000 (14:34 -0700)
Added PKG/HOST_BUILD_PARALLEL for faster compilation.

Signed-off-by: Rosen Penev <redacted>
libs/log4cplus/Makefile

index 3fb57efaac483cfbe31570f620d4e1f9fe7b3963..2a503a1e81e681bb8ef1cb4caa2df2d46debced6 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=log4cplus
 PKG_VERSION:=2.0.4
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
@@ -20,6 +20,8 @@ PKG_MAINTAINER:=BangLang Huang <banglang.huang@foxmail.com>, Rosy Song <rosysong
 PKG_LICENSE:=BSD-2-Clause Apache-2.0
 PKG_LICENSE_FILES:=LICENSE
 
+HOST_BUILD_PARALLEL:=1
+PKG_BUILD_PARALLEL:=1
 CMAKE_INSTALL:=1
 
 include $(INCLUDE_DIR)/package.mk
@@ -40,15 +42,15 @@ define Package/log4cplus/description
   configuration. It is modeled after the Java log4j API.
 endef
 
-TARGET_CFLAGS += -flto
-TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
-
 CMAKE_OPTIONS += \
        -DLOG4CPLUS_BUILD_LOGGINGSERVER:BOOL=OFF \
        -DLOG4CPLUS_BUILD_TESTING:BOOL=OFF \
        -DUNICODE:BOOL=OFF \
        -DWITH_ICONV:BOOL=OFF
 
+TARGET_CFLAGS += -flto
+TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
+
 define Package/log4cplus/install
        $(INSTALL_DIR) $(1)/usr/lib
        $(CP) $(PKG_INSTALL_DIR)/usr/lib/liblog4cplus*.so* $(1)/usr/lib
git clone https://git.99rst.org/PROJECT