From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] rsync: use system zlib and popt, also do not lose debug options
Date: Wed, 16 Oct 2013 14:26:06 +0200 [thread overview]
Message-ID: <20131016142606.10a9585c@skate> (raw)
In-Reply-To: <1381923631-26549-1-git-send-email-denis@mingulov.com>
Dear Denis Mingulov,
On Wed, 16 Oct 2013 14:40:31 +0300, Denis Mingulov wrote:
> 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: Denis Mingulov <denis@mingulov.com>
Thanks, looks good, but I have one suggestion.
> RSYNC_CONF_OPT = $(if $(BR2_ENABLE_DEBUG),--enable-debug,--disable-debug)
> -RSYNC_CONF_OPT = --with-included-popt
> +RSYNC_CONF_OPT += --with-included-zlib=no
> +RSYNC_CONF_OPT += --with-included-popt=no
Make this:
RSYNC_CONF_OPT = \
$(if $(BR2_ENABLE_DEBUG),--enable-debug,--disable-debug) \
--with-included-zlib=no \
--with-included-popt=no
while it makes sense to append to <pkg>_CONF_OPT using += when such
appends are done under conditions, for the general configuration
options, just one assignment is clearer and that's what we use more or
less everywhere in Buildroot.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2013-10-16 12:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-16 11:40 [Buildroot] [PATCH] rsync: use system zlib and popt, also do not lose debug options Denis Mingulov
2013-10-16 12:26 ` Thomas Petazzoni [this message]
2013-10-16 13:13 ` [Buildroot] [PATCH v2] " Denis Mingulov
2013-10-17 16:19 ` Arnout Vandecappelle
2013-11-01 16:41 ` Thomas Petazzoni
2013-10-16 21:47 ` [Buildroot] [PATCH] " Arnout Vandecappelle
2013-10-17 6:05 ` Denis Mingulov
2013-10-17 16:18 ` Arnout Vandecappelle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20131016142606.10a9585c@skate \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox