Fix compiling bundled Kerberos library on several 32-bit architectures
by linking with libatomic.
Disable kernel keyring being picked up from a dirty buildbot
environment.
Signed-off-by: George Sapkin <george@sapk.in>
PKG_NAME:=samba
PKG_VERSION:=4.22.7
-PKG_RELEASE:=2
+PKG_RELEASE:=3
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:= \
$(call Package/samba4/Default)
TITLE+= libs
DEPENDS:= \
+ +(arm||armeb||mips||mipsel||powerpc):libatomic \
+libcap \
+libgnutls \
+libopenssl \
endef
TARGET_CFLAGS += $(FPIC) -std=gnu17
-TARGET_LDFLAGS += -Wl,--as-needed
+TARGET_LDFLAGS += -Wl,--as-needed $(if $(filter arm armeb mips mipsel powerpc,$(ARCH)),-latomic)
+
# dont mess with sambas private rpath!
RSTRIP:=:
--without-gettext \
--without-gpgme \
--without-iconv \
+ --without-kernel-keyring \
--without-lttng \
--without-pam \
--without-regedit \