Compile gnu-binutils with pie so it works on Redox

Because our dynamic linker still doesn't support global offset tables
and those difficult stuffs
This commit is contained in:
jD91mZM2 2020-08-04 13:15:26 +02:00
parent 10d3e23902
commit 01896e5fb0
No known key found for this signature in database
GPG Key ID: E471B167937421AB

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