hooks/register-pkg: register 32bit pkgs in cross mode too.
You can now build 32bit pkgs in cross compilation mode (-a i686).
This commit is contained in:
parent
37cc78ea68
commit
964bf772ba
1 changed files with 7 additions and 8 deletions
|
@ -7,17 +7,16 @@ registerpkg() {
|
||||||
msg_error "Unexistent binary package ${repo}/${pkg}!\n"
|
msg_error "Unexistent binary package ${repo}/${pkg}!\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "${arch}" ]; then
|
|
||||||
export XBPS_TARGET_ARCH=${arch}
|
|
||||||
fi
|
|
||||||
msg_normal "Registering ${pkg} into ${repo} ...\n"
|
msg_normal "Registering ${pkg} into ${repo} ...\n"
|
||||||
|
if [ -n "${arch}" ]; then
|
||||||
if [ -n "$XBPS_CROSS_BUILD" ]; then
|
XBPS_TARGET_ARCH=${arch} $XBPS_RINDEX_CMD ${XBPS_BUILD_FORCEMODE:+-f} -a ${repo}/${pkg}
|
||||||
$XBPS_RINDEX_XCMD ${XBPS_BUILD_FORCEMODE:+-f} -a ${repo}/${pkg}
|
|
||||||
else
|
else
|
||||||
$XBPS_RINDEX_CMD ${XBPS_BUILD_FORCEMODE:+-f} -a ${repo}/${pkg}
|
if [ -n "$XBPS_CROSS_BUILD" ]; then
|
||||||
|
$XBPS_RINDEX_XCMD ${XBPS_BUILD_FORCEMODE:+-f} -a ${repo}/${pkg}
|
||||||
|
else
|
||||||
|
$XBPS_RINDEX_CMD ${XBPS_BUILD_FORCEMODE:+-f} -a ${repo}/${pkg}
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
unset XBPS_TARGET_ARCH
|
|
||||||
}
|
}
|
||||||
|
|
||||||
hook() {
|
hook() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue