Fix build of newlibtest

This commit is contained in:
Jeremy Soller 2017-12-14 20:05:28 -07:00
parent 4fcefcc47e
commit 527599d49c
2 changed files with 5 additions and 4 deletions

View File

@ -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

View File

@ -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