diff --git a/recipes/gcc/recipe.sh b/recipes/gcc/recipe.sh index a14cfe8989b8a45beda6fe880a3d0337b1b7f1b8..e7f9e4204702fd0b1faf4248795ac89cdddc2eac 100644 --- a/recipes/gcc/recipe.sh +++ b/recipes/gcc/recipe.sh @@ -26,7 +26,7 @@ function recipe_build { mkdir -p "$sysroot/usr" ln -sf "$sysroot/include" "$sysroot/usr/include" ln -sf "$sysroot/lib" "$sysroot/usr/lib" - export LDFLAGS="-static" + export LDFLAGS="--static" ./configure \ --build=${BUILD} \ --host=${HOST} \ diff --git a/recipes/gnu-binutils/recipe.sh b/recipes/gnu-binutils/recipe.sh index a72115418b5f30087b93f7006512dca8b0008793..9d33dcd1fa7c8ddea6bd95828dec3ec085648d6d 100644 --- a/recipes/gnu-binutils/recipe.sh +++ b/recipes/gnu-binutils/recipe.sh @@ -19,7 +19,7 @@ function recipe_build { ln -sf "$sysroot/include" "$sysroot/usr/include" ln -sf "$sysroot/lib" "$sysroot/usr/lib" export CPPFLAGS="-I$sysroot/include -pie -fPIC -g" - export LDFLAGS="-L$sysroot/lib -static -g" + export LDFLAGS="-L$sysroot/lib --static -g" ./configure \ --build=${BUILD} \ --host=${HOST} \