diff --git a/recipes/gcc/recipe.sh b/recipes/gcc/recipe.sh index c9485d3ef..5aab6e2b3 100644 --- a/recipes/gcc/recipe.sh +++ b/recipes/gcc/recipe.sh @@ -26,7 +26,7 @@ function recipe_build { ln -sf "$sysroot/include" "$sysroot/usr/include" ln -sf "$sysroot/lib" "$sysroot/usr/lib" - export LIBS='-lpthread' + export LIBS='-Wl,--whole-archive -lpthread -Wl,--no-whole-archive' ./configure \ --host=${HOST} \ --target=${HOST} \