mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-18 08:06:32 +00:00
解决编译gcc、binutils的脚本中,变量名称错误的问题 (#142)
This commit is contained in:
@ -11,8 +11,8 @@ if [ ! -d ${binutils_path} ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d ${sysroot} ]; then
|
||||
echo "Error: ${sysroot} not found"
|
||||
if [ ! -d ${sys_root} ]; then
|
||||
echo "Error: ${sys_root} not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@ -35,7 +35,7 @@ sudo apt-get install -y \
|
||||
wget
|
||||
|
||||
cd build-binutils
|
||||
${binutils_path}/configure --prefix=${PREFIX} --target=x86_64-dragonos --with-sysroot=${sysroot} --disable-werror || exit 1
|
||||
${binutils_path}/configure --prefix=${PREFIX} --target=x86_64-dragonos --with-sysroot=${sys_root} --disable-werror || exit 1
|
||||
make -j $(nproc) || exit 1
|
||||
make install || exit 1
|
||||
make clean || exit 1
|
||||
|
Reference in New Issue
Block a user