Use --static instead of -static for gcc/binutils

This commit is contained in:
Jeremy Soller 2022-08-04 10:21:01 -06:00
parent b90704905e
commit fb22428bb1
No known key found for this signature in database
GPG Key ID: 87F211AF2BE4C2FE
2 changed files with 2 additions and 2 deletions

View File

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

View File

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