From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] package/wireshark: fix static build with libxml2 and lzma
Date: Wed, 24 Apr 2019 21:53:13 +0200 [thread overview]
Message-ID: <20190424215313.2f234920@windsurf> (raw)
In-Reply-To: <20190424194741.12464-1-fontaine.fabrice@gmail.com>
Hello Fabrice,
On Wed, 24 Apr 2019 21:47:41 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> diff --git a/package/wireshark/0004-FindXml2-use-pkg-config-to-find-libxml2-dependencies.patch b/package/wireshark/0004-FindXml2-use-pkg-config-to-find-libxml2-dependencies.patch
> new file mode 100644
> index 0000000000..ab549021e4
> --- /dev/null
> +++ b/package/wireshark/0004-FindXml2-use-pkg-config-to-find-libxml2-dependencies.patch
> @@ -0,0 +1,33 @@
> +From e6a2e71831f0699e9759e0579a00eea5fcb93696 Mon Sep 17 00:00:00 2001
> +From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +Date: Wed, 24 Apr 2019 20:23:00 +0200
> +Subject: [PATCH] FindXml2: use pkg-config to find libxml2 dependencies
> +
> +On UNIX, when statically built, libxml2 can depends on other libraries such
> +as lzma. These dependencies are already retrieved through pkg-config so
> +append them to LIBXML2_LIBRARIES otherwise static build will fail
> +
> +Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> +[Upstream status: not sent yet]
> +---
> + cmake/modules/FindLibXml2.cmake | 4 ++++
> + 1 file changed, 4 insertions(+)
> +
> +diff --git a/cmake/modules/FindLibXml2.cmake b/cmake/modules/FindLibXml2.cmake
> +index 99d70af57d..2a4b1f470f 100644
> +--- a/cmake/modules/FindLibXml2.cmake
> ++++ b/cmake/modules/FindLibXml2.cmake
> +@@ -98,6 +98,10 @@ endif()
> +
> + set(LIBXML2_INCLUDE_DIRS ${LIBXML2_INCLUDE_DIR} ${PC_LIBXML_INCLUDE_DIRS})
> + set(LIBXML2_LIBRARIES ${LIBXML2_LIBRARY})
> ++# Include transitive dependencies for static linking.
> ++if(UNIX)
> ++ list(APPEND LIBXML2_LIBRARIES ${PC_LIBXML_LIBRARIES})
> ++endif()
Why does this needs to be conditional on "UNIX" ? Why isn't it possible
to always use PC_LIBXML_LIBRARIES ?
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2019-04-24 19:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-24 19:47 [Buildroot] [PATCH 1/1] package/wireshark: fix static build with libxml2 and lzma Fabrice Fontaine
2019-04-24 19:53 ` Thomas Petazzoni [this message]
2019-04-24 20:10 ` Fabrice Fontaine
2019-05-26 18:51 ` Arnout Vandecappelle
2019-05-26 19:15 ` Fabrice Fontaine
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=20190424215313.2f234920@windsurf \
--to=thomas.petazzoni@bootlin.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