Skip to content

Commit a4f609f

Browse files
committed
configure: get the masterdir arch from chroot when using xbps-src-make
1 parent 8fab58a commit a4f609f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

configure

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,12 @@ for tb in $_TOBUILD; do
165165
done
166166

167167
if [ "$(command -v xbps-src-make 2>/dev/null)" ]; then
168+
masterdirarch=$(xbps-uhelper -r "$MASTERDIR" arch)
168169
xbps-src-make \
169170
-distdir "$DISTDIR" \
170171
-hostdir "$HOSTDIR" \
171172
-masterdir "$MASTERDIR" \
172-
${XBPS_ARCH:+-arch ${XBPS_ARCH}} \
173+
${masterdirarch:+-arch $masterdirarch} \
173174
${CROSS_ARCH:+-cross ${CROSS_ARCH}} \
174175
-flags "$CFG_LOCAL $CFG_OVERLAYFS -L $CFG_CMDLINE" \
175176
$TOBUILD \

0 commit comments

Comments
 (0)