The daemon imports 64-bit atomics from libatomic where the compiler
cannot inline them, but the CMake build links the library on every
architecture. ATOMIC64_DEPENDS restricts the dependency to the targets
that need it; --as-needed drops the unused library elsewhere.
Signed-off-by: Daniel Golle <redacted>
PKG_NAME:=nanomq
PKG_VERSION:=0.24.6
-PKG_RELEASE:=1
+PKG_RELEASE:=2
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/nanomq/nanomq.git
include $(INCLUDE_DIR)/package.mk
include $(INCLUDE_DIR)/cmake.mk
+TARGET_LDFLAGS += -Wl,--as-needed
+
CMAKE_OPTIONS+= \
-DBUILD_CLIENT=OFF
CATEGORY:=Network
TITLE:=NanoMQ Broker
URL:=https://github.com/nanomq/nanomq
- DEPENDS:=+libatomic
+ DEPENDS:=$(ATOMIC64_DEPENDS)
endef
define Package/nanomq/description