* [Buildroot] [PATCH v3 1/1] package/libarchive: add optional support for bzip2
@ 2016-02-20 14:29 Bernd Kuhls
2016-02-20 14:51 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Bernd Kuhls @ 2016-02-20 14:29 UTC (permalink / raw)
To: buildroot
When bzip2 was compiled before, libarchive will use it as optional
dependency:
$ output/host/usr/bin/i586-buildroot-linux-uclibc-readelf -a output/target/usr/lib/libarchive.so.13.1.2 | grep NEEDED
0x00000001 (NEEDED) Shared library: [liblzma.so.5]
0x00000001 (NEEDED) Shared library: [libbz2.so.1.0]
0x00000001 (NEEDED) Shared library: [libz.so.1]
0x00000001 (NEEDED) Shared library: [libc.so.1]
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
v3: Added --with-bz2lib (Thomas)
v2: Added note why --with-bz2lib is not needed (Arnout)
package/libarchive/libarchive.mk | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/package/libarchive/libarchive.mk b/package/libarchive/libarchive.mk
index 206de3f..726142b 100644
--- a/package/libarchive/libarchive.mk
+++ b/package/libarchive/libarchive.mk
@@ -42,6 +42,13 @@ else
LIBARCHIVE_CONF_OPTS += --disable-xattr
endif
+ifeq ($(BR2_PACKAGE_BZIP2),y)
+LIBARCHIVE_CONF_OPTS += --with-bz2lib
+LIBARCHIVE_DEPENDENCIES += bzip2
+else
+LIBARCHIVE_CONF_OPTS += --without-bz2lib
+endif
+
ifeq ($(BR2_PACKAGE_EXPAT),y)
LIBARCHIVE_DEPENDENCIES += expat
else
--
2.7.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH v3 1/1] package/libarchive: add optional support for bzip2
2016-02-20 14:29 [Buildroot] [PATCH v3 1/1] package/libarchive: add optional support for bzip2 Bernd Kuhls
@ 2016-02-20 14:51 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2016-02-20 14:51 UTC (permalink / raw)
To: buildroot
Dear Bernd Kuhls,
On Sat, 20 Feb 2016 15:29:54 +0100, Bernd Kuhls wrote:
> When bzip2 was compiled before, libarchive will use it as optional
> dependency:
>
> $ output/host/usr/bin/i586-buildroot-linux-uclibc-readelf -a output/target/usr/lib/libarchive.so.13.1.2 | grep NEEDED
> 0x00000001 (NEEDED) Shared library: [liblzma.so.5]
> 0x00000001 (NEEDED) Shared library: [libbz2.so.1.0]
> 0x00000001 (NEEDED) Shared library: [libz.so.1]
> 0x00000001 (NEEDED) Shared library: [libc.so.1]
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
> ---
> v3: Added --with-bz2lib (Thomas)
> v2: Added note why --with-bz2lib is not needed (Arnout)
Applied to master, thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-02-20 14:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-20 14:29 [Buildroot] [PATCH v3 1/1] package/libarchive: add optional support for bzip2 Bernd Kuhls
2016-02-20 14:51 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox