mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-26 23:04:19 +08:00
Fix build of newlibtest
This commit is contained in:
parent
4fcefcc47e
commit
527599d49c
4
cook.sh
4
cook.sh
@ -226,7 +226,7 @@ function op {
|
||||
fi
|
||||
popd > /dev/null
|
||||
;;
|
||||
prepare)
|
||||
prepare)
|
||||
skip=0
|
||||
if [ "$(type -t recipe_prepare)" = "function" ]
|
||||
then
|
||||
@ -248,7 +248,7 @@ function op {
|
||||
pkg --target=$TARGET install --root sysroot "$REPO/$i.tar.gz"
|
||||
done
|
||||
fi
|
||||
|
||||
|
||||
rm -rf build
|
||||
cp -rp source build
|
||||
|
||||
|
||||
@ -15,8 +15,9 @@ function recipe_build {
|
||||
sysroot="${PWD}/../sysroot"
|
||||
export CC="${HOST}-gcc"
|
||||
export LD="${HOST}-ld"
|
||||
export CFLAGS="-nostdinc -nostdlib -static $sysroot/lib/crt0.o"
|
||||
export LIBS="-I $sysroot/include -L $sysroot/lib -lc -lm"
|
||||
export CFLAGS="-static -nostdinc -I $sysroot/include -I /usr/lib/gcc/x86_64-unknown-redox/7.0.1/include/ -nostdlib -L $sysroot/lib"
|
||||
export CRT="$sysroot/lib/crt0.o"
|
||||
export CLIBS="-lc -lm"
|
||||
|
||||
make all
|
||||
skip=1
|
||||
|
||||
Loading…
Reference in New Issue
Block a user