From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] kismet: Fix static build
Date: Fri, 26 Dec 2014 17:04:59 +0100 [thread overview]
Message-ID: <20141226160459.GE3982@free.fr> (raw)
In-Reply-To: <1418395681-40434-2-git-send-email-Vincent.Riera@imgtec.com>
Vicente, All,
On 2014-12-12 14:48 +0000, Vicente Olivert Riera spake thusly:
> Use pcap-config to list optional libpcap dependencies needed for static
> link. Otherwise we will see errors like this one:
>
> /br/output/host/usr/mipsel-buildroot-linux-uclibc/sysroot/usr/lib/libpcap.a(pcap-canusb-linux.o):
> In function `canusb_close':
> pcap-canusb-linux.c:(.text+0xec): undefined reference to `libusb_close'
>
> Also reorder the ncurses libs because the order is very important when
> doing static builds. Otherwise we will see errors like this one:
>
> /br/output/host/usr/mipsel-buildroot-linux-uclibc/sysroot/usr/lib/libpanel.a(p_delete.o):
> In function `del_panel':
> p_delete.c:(.text+0x68): undefined reference to `_nc_panelhook'
>
> Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
> ---
> package/kismet/kismet.mk | 8 ++++++++
> 1 files changed, 8 insertions(+), 0 deletions(-)
>
> diff --git a/package/kismet/kismet.mk b/package/kismet/kismet.mk
> index f177fea..6aeafe2 100644
> --- a/package/kismet/kismet.mk
> +++ b/package/kismet/kismet.mk
> @@ -12,6 +12,14 @@ KISMET_CONF_OPTS += --with-netlink-version=3
> KISMET_LICENSE = GPLv2+
> KISMET_LICENSE_FILES = debian/copyright
>
> +define KISMET_REORDER_NCURSES_LIBS
> + $(SED) 's/-lncurses -lpanel/-lpanel -lncurses/' $(@D)/Makefile.inc
I think it is better to patch configure.in instead of this post-patch
hook. I have a patch to this effect that I'll submit soon.
> +endef
> +ifeq ($(BR2_PREFER_STATIC_LIB),y)
> +KISMET_CONF_ENV = LIBS="-lpcap $(shell $(STAGING_DIR)/usr/bin/pcap-config --static --additional-libs)"
I'll incorporate your libpcap in my series when I resubmit.
In the meantime, I have marked this patch as "Changes Requested" in
Patchwork.
Regards,
Yann E. MORIN.
> +KISMET_POST_CONFIGURE_HOOKS += KISMET_REORDER_NCURSES_LIBS
> +endif
> +
> ifeq ($(BR2_PACKAGE_PCRE),y)
> KISMET_DEPENDENCIES += pcre
> endif
> --
> 1.7.1
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2014-12-26 16:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-12 14:48 [Buildroot] [PATCH 1/2] kismet: Remove libpcap compile tests to fix cross-compiling Vicente Olivert Riera
2014-12-12 14:48 ` [Buildroot] [PATCH 2/2] kismet: Fix static build Vicente Olivert Riera
2014-12-26 16:04 ` Yann E. MORIN [this message]
2014-12-26 16:24 ` [Buildroot] [PATCH 1/2] kismet: Remove libpcap compile tests to fix cross-compiling Yann E. MORIN
-- strict thread matches above, loose matches on Subject: below --
2014-12-26 17:33 [Buildroot] [PATCH 0/2] kismet: fix static builds (branch yem/fixes) Yann E. MORIN
2014-12-26 17:33 ` [Buildroot] [PATCH 2/2] kismet: Fix static build 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=20141226160459.GE3982@free.fr \
--to=yann.morin.1998@free.fr \
--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