diff --git a/srcpkgs/tdb/files/cross-32bit.answers b/srcpkgs/tdb/files/cross-32bit.answers index 6262d36125f..c661c19441d 100644 --- a/srcpkgs/tdb/files/cross-32bit.answers +++ b/srcpkgs/tdb/files/cross-32bit.answers @@ -1,12 +1,12 @@ -Checking uname sysname type: OK -Checking uname machine type: OK -Checking uname release type: OK -Checking uname version type: OK -Checking simple C program: OK -building library support: OK -Checking for large file support: OK -Checking for -D_FILE_OFFSET_BITS=64: OK -Checking for WORDS_BIGENDIAN: OK +Checking uname sysname type: "Linux" +Checking uname machine type: "@@XBPS_TARGET_MACHINE@@" +Checking uname release type: "ok" +Checking uname version type: "ok" +Checking simple C program: "ok" +building library support: "ok" +Checking for large file support: "ok" +Checking for -D_FILE_OFFSET_BITS=64: "ok" +Checking for WORDS_BIGENDIAN: "ok" Checking size of char: "1" Checking size of int: "4" Checking size of long long: "4" diff --git a/srcpkgs/tdb/template b/srcpkgs/tdb/template index 31b8697b316..8c37ada5b73 100644 --- a/srcpkgs/tdb/template +++ b/srcpkgs/tdb/template @@ -10,11 +10,11 @@ license="GPL-3" homepage="http://tdb.samba.org/" distfiles="http://samba.org/ftp/tdb/tdb-$version.tar.gz" checksum=f585cd53b49cb1f11f4c5aec404d0daa0c9bc5568790b09f5eb3b79315511729 -nocross=yes do_configure() { if [ "$CROSS_BUILD" ]; then cp ${FILESDIR}/cross-32bit.answers . + sed -i "s,@@XBPS_TARGET_MACHINE@@,$XBPS_TARGET_MACHINE,g" cross-32bit.answers _args="--cross-compile --hostcc=cc --cross-answers=cross-32bit.answers" fi ./configure --prefix=/usr --disable-python ${_args}