kumquat-buildroot/package/gesftpserver/gesftpserver.mk
Fabrice Fontaine 85a9a3f0e6 package/gesftpserver: fix build with gcc 4.8
Fix the following build failure with gcc 4.8 raised since bump to
version 2 in commit 026265bf7e and
dbbf0d4542:

In file included from alloc.c:25:0:
utils.h:204:48: error: expected ';', ',' or ')' before 'dest'
 static inline void *sftp_memcpy(void *restrict dest, const void *restrict src,
                                                ^

Fixes:
 - http://autobuild.buildroot.org/results/2795213c07c4a961cee0ae7a4e7cccb8bcd6f68e

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2022-10-18 21:47:03 +02:00

40 lines
1.2 KiB
Makefile

################################################################################
#
# gesftpserver
#
################################################################################
GESFTPSERVER_VERSION = 2
GESFTPSERVER_SOURCE = sftpserver-$(GESFTPSERVER_VERSION).tar.gz
GESFTPSERVER_SITE = http://www.greenend.org.uk/rjk/sftpserver
GESFTPSERVER_LICENSE = GPL-2.0+
GESFTPSERVER_LICENSE_FILES = COPYING
# "Missing prototype" warning treated as error
GESFTPSERVER_CONF_OPTS = --disable-warnings-as-errors
GESFTPSERVER_CPE_ID_VENDOR = green_end
GESFTPSERVER_CPE_ID_PRODUCT = sftpserver
# forgets to link against pthread when cross compiling
GESFTPSERVER_CONF_ENV = \
CFLAGS="$(TARGET_CFLAGS) -std=c99" \
LIBS=-lpthread
# overwrite openssh version if enabled
GESFTPSERVER_DEPENDENCIES += \
$(if $(BR2_ENABLE_LOCALE),,libiconv) \
$(if $(BR2_PACKAGE_OPENSSH),openssh)
# Python on the host is only used for tests, which we don't use in
# Buildroot
GESFTPSERVER_CONF_ENV += rjk_cv_python3=false
# openssh/dropbear looks here
define GESFTPSERVER_ADD_SYMLINK
ln -sf gesftpserver $(TARGET_DIR)/usr/libexec/sftp-server
endef
GESFTPSERVER_POST_INSTALL_TARGET_HOOKS += GESFTPSERVER_ADD_SYMLINK
$(eval $(autotools-package))