Commit 6eac0819 authored by Denis Mingulov's avatar Denis Mingulov Committed by Thomas Petazzoni
Browse files

rsync: use system zlib and popt, also do not lose debug options



rsync by default compiles statically its own zlib and popt
libraries, it is better to use system wide libraries instead -
both for disk and memory consumption. Change rsync package
accordingly.

Also previously a debug configure option has been lost, as
overwritten by '--with-included-popt' option - fixed.

For example, on ARMv5 rsync binary size is reduced by about 25%.

Signed-off-by: default avatarDenis Mingulov <denis@mingulov.com>
Acked-by: default avatarArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent ee1565bf
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2,6 +2,8 @@ config BR2_PACKAGE_RSYNC
	bool "rsync"
	# fork()
	depends on BR2_USE_MMU
	select BR2_PACKAGE_ZLIB
	select BR2_PACKAGE_POPT
	help
	  File transfer program to keep remote files in sync.

+5 −2
Original line number Diff line number Diff line
@@ -8,7 +8,10 @@ RSYNC_VERSION = 3.1.0
RSYNC_SITE = http://rsync.samba.org/ftp/rsync/src
RSYNC_LICENSE = GPLv3+
RSYNC_LICENSE_FILES = COPYING
RSYNC_CONF_OPT = $(if $(BR2_ENABLE_DEBUG),--enable-debug,--disable-debug)
RSYNC_CONF_OPT = --with-included-popt
RSYNC_DEPENDENCIES = zlib popt
RSYNC_CONF_OPT = \
	$(if $(BR2_ENABLE_DEBUG),--enable-debug,--disable-debug) \
	--with-included-zlib=no \
	--with-included-popt=no

$(eval $(autotools-package))