[LTP] [PATCH] build.sh: support compiler with path prefix
Li Zhijian
lizhijian@cn.fujitsu.com
Mon Jan 11 02:23:38 CET 2021
Previously, specify a compiler with path prefix will lead to a error
like below:
ltp$ ./build.sh -t cross -c /opt/gcc-4.9.3-64-gnu/bin/mips64el-linux-gcc
...
It was created by ltp configure LTP_VERSION, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --with-open-posix-testsuite --with-realtime-testsuite --prefix=/home/lizj/ltp-install --host=/opt/gcc-4.9.3-64-gnu/bin/mips64el-linux CROSS_COMPILE=/opt/gcc-4.9.3-64-gnu/bin/mips64el-linux-
...
#define VERSION "LTP_VERSION"
configure: exit 1
Signed-off-by: Li Zhijian <lizhijian@cn.fujitsu.com>
---
build.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build.sh b/build.sh
index 452cc6f4c..a662c9cb4 100755
--- a/build.sh
+++ b/build.sh
@@ -64,7 +64,7 @@ build_cross()
fi
echo "===== cross-compile ${host} ${1}-tree build into $PREFIX ====="
- build $1 $2 "--host=$host" CROSS_COMPILE="${host}-"
+ build $1 $2 "--host=$(basename $host)" CROSS_COMPILE="${host}-"
}
build()
--
2.30.0
More information about the ltp
mailing list