Sett CC and CXX for cross builds

This commit is contained in:
Anthony Green
2019-11-06 11:31:17 -05:00
parent d23d3959fd
commit 259c497a2f
2 changed files with 2 additions and 6 deletions
+1 -5
View File
@@ -4,11 +4,7 @@ cd /opt
export QEMU_LD_PREFIX=/usr/${HOST}
if ! test "x$HOST" == "x"; then
./configure --host=${HOST} --disable-shared;
else
./configure
fi
./configure ${HOST+--host=$HOST --disable-shared}
make
make dist
make check RUNTESTFLAGS="-a $RUNTESTFLAGS"
+1 -1
View File
@@ -36,7 +36,7 @@ function build_foreign_linux()
function build_cross_linux()
{
docker run --rm -t -i -v `pwd`:/opt -e HOST="${HOST}" -e LIBFFI_TEST_OPTIMIZATION="${LIBFFI_TEST_OPTIMIZATION}" moxielogic/cross-ci-build-container:latest bash -c /opt/.travis/build-in-container.sh
docker run --rm -t -i -v `pwd`:/opt -e HOST="${HOST}" -e CC="${HOST}-gcc-8" -e CXX="${HOST}-g++-8" -e LIBFFI_TEST_OPTIMIZATION="${LIBFFI_TEST_OPTIMIZATION}" moxielogic/cross-ci-build-container:latest bash -c /opt/.travis/build-in-container.sh
exit $?
}