rpm: fix cross

This commit is contained in:
Jürgen Buchmüller 2017-12-18 06:52:27 +01:00
parent baf1e5ba7f
commit df71f51125

View File

@ -15,17 +15,17 @@ homepage="http://rpm.org"
distfiles="http://ftp.rpm.org/releases/rpm-${version%.*.*}.x/rpm-${version}.tar.bz2" distfiles="http://ftp.rpm.org/releases/rpm-${version%.*.*}.x/rpm-${version}.tar.bz2"
checksum=2f3e2c07c354d16f2305ddd93ed030c8403d59b272f2fb6722445b091ff14194 checksum=2f3e2c07c354d16f2305ddd93ed030c8403d59b272f2fb6722445b091ff14194
conflicts="rpmextract>=0" # Both provide rpm2cpio conflicts="rpmextract>=0" # Both provide rpm2cpio
nocross="too buggy header detection and incompatible with musl fixes"
_EXTRA_INCLUDES=" -I/usr/include/nss -I/usr/include/nspr" CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python2.7"
CFLAGS=" ${_EXTRA_INCLUDES}" CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/nss"
CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/nspr"
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
# Musl requires gettext to be included and it's cflag added otherwise # Musl requires gettext to be included and it's cflag added otherwise
# it fails with _nl_msg_cat_cntr undefined reference error # it fails with _nl_msg_cat_cntr undefined reference error
*-musl*) *-musl*)
hostmakedepends+=" gettext-devel" makedepends+=" gettext-devel"
CFLAGS+=" -lintl" LDFLAGS+=" -lintl"
;; ;;
esac esac