log4cplus: apply cmake options to the host
authorRosen Penev <redacted>
Sat, 25 Jul 2020 08:28:16 +0000 (01:28 -0700)
committerRosen Penev <redacted>
Sat, 25 Jul 2020 08:31:37 +0000 (01:31 -0700)
loggingserver was getting built with a bad link path. Instead of fixing
it, just disable it as is done on the target.

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

index 6a1bf70ab0dde272131c55f726b70acd40612794..261e359043d7e645a42b3531926b49cf5da80c5e 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=log4cplus
 PKG_VERSION:=2.0.5
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
 PKG_SOURCE_URL:=@SF/$(PKG_NAME)
@@ -42,12 +42,15 @@ define Package/log4cplus/description
   configuration. It is modeled after the Java log4j API.
 endef
 
-CMAKE_OPTIONS += \
+OPTIONS:= \
        -DLOG4CPLUS_BUILD_LOGGINGSERVER:BOOL=OFF \
        -DLOG4CPLUS_BUILD_TESTING:BOOL=OFF \
        -DUNICODE:BOOL=OFF \
        -DWITH_ICONV:BOOL=OFF
 
+CMAKE_HOST_OPTIONS += $(OPTIONS)
+CMAKE_OPTIONS += $(OPTIONS)
+
 TARGET_CFLAGS += -flto
 TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
 
git clone https://git.99rst.org/PROJECT