mirror of
https://github.com/partic2/libffi
synced 2026-11-09 17:47:19 +00:00
Sett CC and CXX for cross builds
This commit is contained in:
@@ -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
@@ -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 $?
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user