From 9f683f180e95088e59e87a4c3f68b9b5ad565f06 Mon Sep 17 00:00:00 2001 From: Alexandru Ardelean Date: Thu, 20 Jun 2019 12:11:39 +0300 Subject: [PATCH] seafile-server: fix build with libssp & non-musl libc Fixes: https://github.com/openwrt/packages/issues/9255 This seems to fail the build for this package only. So, this change patches the build, to add `-lssp` to the LDFLAGS of this package, in case the build uses GCC's libssp. Signed-off-by: Alexandru Ardelean --- net/seafile-server/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/net/seafile-server/Makefile b/net/seafile-server/Makefile index 5dc71e4b2d..d34d7c481f 100644 --- a/net/seafile-server/Makefile +++ b/net/seafile-server/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=seafile-server PKG_VERSION:=6.3.4 -PKG_RELEASE:=5 +PKG_RELEASE:=6 PKG_LICENSE:=GPL-3.0 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz @@ -77,6 +77,10 @@ endif TARGET_LDFLAGS += -Wl,-rpath-link=$(STAGING_DIR)/usr/lib -liconv \ -L$(STAGING_DIR)/usr/lib/mysql -lmysqlclient -lz -levent_openssl -levent +ifdef CONFIG_GCC_LIBSSP +TARGET_LDFLAGS += -lssp +endif + define Package/seafile-server/conffiles /etc/config/seafile endef -- 2.30.2