Commit 61c3fbd1 authored by Romain Naour's avatar Romain Naour Committed by Thomas Petazzoni
Browse files

package/rpm: use external xz library

Internal xz backend is statically linked and need a static
libintl library when BR2_NEEDS_GETTEXT_IF_LOCALE is set.
But for a shared only build, there is no static libintl available
in the sysroot.

Use the external xz library provided by Buildroot instead of
using the internal xz backend.

Fixes:
http://autobuild.buildroot.net/results/2c6/2c61562008418ff58fa3085a3342b0e304923073/



Signed-off-by: default avatarRomain Naour <romain.naour@openwide.fr>
Reviewed-by: default avatar"Yann E. MORIN" <yann.morin.1998@free.fr>
Signed-off-by: default avatarThomas Petazzoni <thomas.petazzoni@free-electrons.com>
parent 3c476540
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -46,7 +46,10 @@ endif

# xz payload support needs a toolchain w/ C++
ifeq ($(BR2_PACKAGE_XZ)$(BR2_INSTALL_LIBSTDCPP),yy)
RPM_CONF_OPTS += --with-xz
RPM_DEPENDENCIES += xz
RPM_CONF_OPTS += --with-xz=external
else
RPM_CONF_OPTS += --with-xz=none
endif

ifeq ($(BR2_PACKAGE_BZIP2),y)