Merge branch 'more-pie' into 'master'

Compile gnu-binutils with pie so it works on Redox

See merge request redox-os/cookbook!245
This commit is contained in:
Jeremy Soller 2020-08-04 12:24:04 +00:00
commit 068fefd139

View File

@ -18,7 +18,7 @@ function recipe_build {
mkdir -p "$sysroot/usr"
ln -sf "$sysroot/include" "$sysroot/usr/include"
ln -sf "$sysroot/lib" "$sysroot/usr/lib"
export CPPFLAGS="-I$sysroot/include -g"
export CPPFLAGS="-I$sysroot/include -pie -fPIC -g"
export LDFLAGS="-L$sysroot/lib -static -g"
./configure \
--build=${BUILD} \