Skip to content

Commit

Permalink
ksmbd-tools: fix compilation with glibc
Browse files Browse the repository at this point in the history
Needs to be linked to lpthread.

Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb committed Dec 31, 2020
1 parent d39c77b commit 5eeb8f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/ksmbd-tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk

PKG_NAME:=ksmbd-tools
PKG_VERSION:=3.3.1
PKG_RELEASE:=1
PKG_RELEASE:=2

PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/cifsd-team/ksmbd-tools/tar.gz/$(PKG_VERSION)?
Expand Down Expand Up @@ -96,7 +96,7 @@ CONFIGURE_ARGS += \
CONFIGURE_VARS += GLIB_LIBS="$(STAGING_DIR)/usr/lib/libglib-2.0.a"

TARGET_CFLAGS += -ffunction-sections -fdata-sections -flto
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed -liconv $(if $(INTL_FULL),-lintl)
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed -liconv $(if $(INTL_FULL),-lintl) $(if $(CONFIG_LIBC_USE_GLIBC),-lpthread)

define Package/ksmbd-server/install
$(INSTALL_DIR) $(1)/usr/sbin
Expand Down

0 comments on commit 5eeb8f8

Please sign in to comment.