e889a1c9e9
Fix the following openssl static build raised since commit80fa5672da
: /home/buildroot/autobuild/instance-0/output-1/host/lib/gcc/aarch64_be-buildroot-linux-uclibc/12.3.0/../../../../aarch64_be-buildroot-linux-uclibc/bin/ld: /home/buildroot/autobuild/instance-0/output-1/host/aarch64_be-buildroot-linux-uclibc/sysroot/lib/../lib64/libcrypto.a(libcrypto-lib-c_zlib.o): in function `zlib_oneshot_expand_block': c_zlib.c:(.text+0xaec): undefined reference to `uncompress' Commitb9a062b354
can also be reverted as pkg-config will also retrieve -latomic to avoid the following build failure: /home/autobuild/autobuild/instance-1/output-1/host/lib/gcc/sparc-buildroot-linux-uclibc/10.4.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: /home/autobuild/autobuild/instance-1/output-1/host/sparc-buildroot-linux-uclibc/sysroot/usr/lib/libcrypto.a(threads_pthread.o): in function `CRYPTO_atomic_add': threads_pthread.c:(.text+0x208): undefined reference to `__atomic_is_lock_free' RSYNC_POST_CONFIGURE_HOOKS must be added to call reconfigure and avoid the following build failure after autoreconf: autoconf -o configure.sh autoheader && touch config.h.in configure.sh has CHANGED. config.h.in is unchanged. You may need to run: make reconfigure Fixes: - http://autobuild.buildroot.org/results/6c1636f7556e7370a4c9f6d02c63cf3e20dc985c - http://autobuild.buildroot.org/results/49abbaa1eab94b248bff434b40728065d687e278 Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
66 lines
1.6 KiB
Makefile
66 lines
1.6 KiB
Makefile
################################################################################
|
|
#
|
|
# rsync
|
|
#
|
|
################################################################################
|
|
|
|
RSYNC_VERSION = 3.2.7
|
|
RSYNC_SITE = https://rsync.samba.org/ftp/rsync/src
|
|
RSYNC_LICENSE = GPL-3.0+ with exceptions
|
|
RSYNC_LICENSE_FILES = COPYING
|
|
RSYNC_CPE_ID_VENDOR = samba
|
|
RSYNC_SELINUX_MODULES = rsync
|
|
# We're patching configure.ac
|
|
RSYNC_AUTORECONF = YES
|
|
RSYNC_DEPENDENCIES = host-pkgconf zlib popt
|
|
# We know that our C library is modern enough for C99 vsnprintf(). Since
|
|
# configure can't detect this, we tell configure that vsnprintf() is safe.
|
|
RSYNC_CONF_ENV = rsync_cv_HAVE_C99_VSNPRINTF=yes
|
|
RSYNC_CONF_OPTS = \
|
|
--with-included-zlib=no \
|
|
--with-included-popt=no \
|
|
--disable-roll-simd \
|
|
--disable-md5-asm
|
|
|
|
# reconfigure must be run after autoreconf
|
|
define RSYNC_RUN_RECONFIGURE
|
|
cd $(@D) && PATH=$(BR_PATH) make reconfigure
|
|
endef
|
|
RSYNC_POST_CONFIGURE_HOOKS += RSYNC_RUN_RECONFIGURE
|
|
|
|
ifeq ($(BR2_PACKAGE_ACL),y)
|
|
RSYNC_DEPENDENCIES += acl
|
|
else
|
|
RSYNC_CONF_OPTS += --disable-acl-support
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LZ4),y)
|
|
RSYNC_DEPENDENCIES += lz4
|
|
RSYNC_CONF_OPTS += --enable-lz4
|
|
else
|
|
RSYNC_CONF_OPTS += --disable-lz4
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
RSYNC_DEPENDENCIES += openssl
|
|
RSYNC_CONF_OPTS += --enable-openssl
|
|
else
|
|
RSYNC_CONF_OPTS += --disable-openssl
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_XXHASH),y)
|
|
RSYNC_DEPENDENCIES += xxhash
|
|
RSYNC_CONF_OPTS += --enable-xxhash
|
|
else
|
|
RSYNC_CONF_OPTS += --disable-xxhash
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_ZSTD),y)
|
|
RSYNC_DEPENDENCIES += zstd
|
|
RSYNC_CONF_OPTS += --enable-zstd
|
|
else
|
|
RSYNC_CONF_OPTS += --disable-zstd
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|