diff --git a/recipes/gcc/recipe.sh b/recipes/gcc/recipe.sh index c091a3d617160e254b279cd65fb1b6759daa85d5..c9485d3efa4e0b7a64d71b9c05f72999297320d3 100644 --- a/recipes/gcc/recipe.sh +++ b/recipes/gcc/recipe.sh @@ -21,10 +21,12 @@ function recipe_build { cp config.sub mpfr/config.sub cp -f config.sub mpc/config.sub - sysroot="$(realpath "${PWD}/../sysroot")" + sysroot="$(realpath ../sysroot)" mkdir -p "$sysroot/usr" ln -sf "$sysroot/include" "$sysroot/usr/include" ln -sf "$sysroot/lib" "$sysroot/usr/lib" + + export LIBS='-lpthread' ./configure \ --host=${HOST} \ --target=${HOST} \