From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 02/18] package/mplayer: add optional giflib support
Date: Mon, 30 Mar 2015 23:06:06 +0200 [thread overview]
Message-ID: <20150330230606.2702a000@free-electrons.com> (raw)
In-Reply-To: <20150330225658.091b8e72@free-electrons.com>
Hello,
On Mon, 30 Mar 2015 22:56:58 +0200, Thomas Petazzoni wrote:
> > +ifeq ($(BR2_PACKAGE_GIFLIB),y)
> > +MPLAYER_DEPENDENCIES += giflib
> > +MPLAYER_EXTRA_LIBS += -lgif
> > +endif
>
> Any reason not to use --enable-gif / --disable-gif here? Then you don't
> need to pass a --extra-libs value. I've applied the patch with this
> change, as it seems to build fine. Let me know if that causes a problem.
Hum, looking at the ncurses case, things seem to be a bit annoying:
echocheck "termcap"
if test "$_termcap" = auto ; then
_termcap=no
for ld_tmp in "-lncurses" "-ltinfo" "-ltermcap"; do
statement_check term.h 'tgetent(0, 0)' $ld_tmp &&
extra_ldflags="$extra_ldflags $ld_tmp" && _termcap=yes && break
done
fi
if test "$_termcap" = yes ; then
def_termcap='#define HAVE_TERMCAP 1'
test $ld_tmp && res_comment="using $ld_tmp"
else
def_termcap='#undef HAVE_TERMCAP'
fi
echores "$_termcap"
So, if you explicitly pass --enable-termcap, autodetection is not done,
and you have to pass -lncurses explicitly in --extra-libs. Otherwise,
if you don't use --enable-termcap and let the autodetection do its
work, it detects -lncurses automatically.
So I'm not sure which one to choose:
*) Autodetection, which avoids the need for passing explicit -l<foo>
values, but has the drawback of autodetection: we're not explicitly
saying which features we want to enable, which may cause mis-use of
certain libraries.
*) No autodetection, which forces us to pass the proper -l<foo> value
for each dependency.
Opinions?
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2015-03-30 21:06 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-29 17:11 [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies Bernd Kuhls
2015-03-29 17:11 ` [Buildroot] [PATCH 01/18] package/mplayer: needs host-pkgconf Bernd Kuhls
2015-03-30 20:56 ` Thomas Petazzoni
2015-03-29 17:11 ` [Buildroot] [PATCH 02/18] package/mplayer: add optional giflib support Bernd Kuhls
2015-03-30 20:56 ` Thomas Petazzoni
2015-03-30 21:06 ` Thomas Petazzoni [this message]
2015-03-31 18:38 ` Arnout Vandecappelle
2015-03-31 20:07 ` Bernd Kuhls
2015-04-01 19:28 ` Arnout Vandecappelle
2015-03-29 17:11 ` [Buildroot] [PATCH 03/18] package/mplayer: add optional ncurses support Bernd Kuhls
2015-04-07 20:52 ` Thomas Petazzoni
2015-03-29 17:11 ` [Buildroot] [PATCH 04/18] package/mplayer: add optional samba support Bernd Kuhls
2015-04-07 20:53 ` Thomas Petazzoni
2015-03-29 17:11 ` [Buildroot] [PATCH 05/18] package/mplayer: add optional libbluray support Bernd Kuhls
2015-03-29 17:11 ` [Buildroot] [PATCH 06/18] package/mplayer: add optional fontconfig support Bernd Kuhls
2015-03-29 17:11 ` [Buildroot] [PATCH 07/18] package/mplayer: add optional libfribidi support Bernd Kuhls
2015-03-29 17:11 ` [Buildroot] [PATCH 08/18] package/mplayer: add optional libass support Bernd Kuhls
2015-03-29 17:11 ` [Buildroot] [PATCH 09/18] package/mplayer: add optional libenca support Bernd Kuhls
2015-03-29 17:11 ` [Buildroot] [PATCH 10/18] package/mplayer: add optional lzo support Bernd Kuhls
2015-04-08 21:19 ` Yann E. MORIN
2015-03-29 17:11 ` [Buildroot] [PATCH 11/18] package/mplayer: add optional faad2 support Bernd Kuhls
2015-04-08 21:21 ` Yann E. MORIN
2015-03-29 17:11 ` [Buildroot] [PATCH 12/18] package/mplayer: add optional rtmpdump support Bernd Kuhls
2015-04-08 21:25 ` Yann E. MORIN
2015-04-08 21:33 ` Thomas Petazzoni
2015-03-29 17:11 ` [Buildroot] [PATCH 13/18] package/mplayer: add optional speex support Bernd Kuhls
2015-03-29 17:11 ` [Buildroot] [PATCH 14/18] package/mplayer: add optional libiconv support Bernd Kuhls
2015-04-08 21:30 ` Yann E. MORIN
2015-04-08 21:32 ` Thomas Petazzoni
2015-03-29 17:11 ` [Buildroot] [PATCH 15/18] package/mplayer: disable optional libcdio support Bernd Kuhls
2015-03-29 17:11 ` [Buildroot] [PATCH 16/18] package/mplayer: add optional bzip2 support Bernd Kuhls
2015-03-29 17:11 ` [Buildroot] [PATCH 17/18] package/mplayer: add optional lame support Bernd Kuhls
2015-03-29 17:11 ` [Buildroot] [PATCH 18/18] package/mplayer: add optional libmpeg2 support Bernd Kuhls
2015-04-08 21:35 ` Yann E. MORIN
2015-04-07 21:30 ` [Buildroot] [PATCH 00/18] package/mplayer: add optional dependencies Thomas Petazzoni
2015-04-08 21:35 ` Thomas Petazzoni
2015-04-08 21:46 ` Yann E. MORIN
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=20150330230606.2702a000@free-electrons.com \
--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