From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2, 1/1] package/wireshark: fix static build with brotli
Date: Fri, 3 Jan 2020 15:23:08 +0100 [thread overview]
Message-ID: <20200103152308.5a27124c@windsurf> (raw)
In-Reply-To: <20200103134821.1505736-1-fontaine.fabrice@gmail.com>
Hello Fabrice,
Thanks for your new iteration!
On Fri, 3 Jan 2020 14:48:21 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> ++find_package(PkgConfig QUIET)
> ++PKG_CHECK_MODULES(PC_BROTLI QUIET libbrotlidec)
> ++
> + find_path(BROTLI_INCLUDE_DIR
> + NAMES "brotli/decode.h"
> + HINTS "${BROTLI_HINTS}/include"
> +@@ -28,6 +31,10 @@ if( BROTLI_FOUND )
> + set( BROTLI_INCLUDE_DIRS ${BROTLI_INCLUDE_DIR} )
> + set( BROTLI_LIBRARIES ${BROTLIDEC_LIBRARY} )
> +
> ++ if(UNIX)
> ++ list(APPEND BROTLI_LIBRARIES ${PC_BROTLI_LIBRARIES})
> ++ endif()
I'm not sure the UNIX condition is needed.
Also, if pkg-config is available, I guess you could simply set
BROTLI_INCLUDE_DIRS and BROTLI_LIBRARIES from the results given by
pkg-config.
Ah, but looking at cmake/modules/FindLibXml2.cmake, I see that this is
where you took the:
# Include transitive dependencies for static linking.
if(UNIX AND CMAKE_FIND_LIBRARY_SUFFIXES STREQUAL ".a")
list(APPEND LIBXML2_LIBRARIES ${PC_LIBXML_LIBRARIES})
endif()
logic.
So, I'm not sure what Wireshark upstream wants to do. It's probably
best to work with them directly.
Best regards,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2020-01-03 14:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-03 13:48 [Buildroot] [PATCH v2, 1/1] package/wireshark: fix static build with brotli Fabrice Fontaine
2020-01-03 14:23 ` Thomas Petazzoni [this message]
2020-01-10 17:35 ` 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=20200103152308.5a27124c@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