mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-21 20:34:17 +08:00
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:
parent
10d3e23902
commit
01896e5fb0
@ -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} \
|
||||
|
||||
Loading…
Reference in New Issue
Block a user