Build entire toolchain as PIC for proper static linking
This commit is contained in:
parent
a0384b8b70
commit
654a6d765e
5 changed files with 27 additions and 18 deletions
|
@ -20,9 +20,12 @@ ffbuild_dockerbuild() {
|
|||
return 0
|
||||
}
|
||||
|
||||
ffbuild_configure() {
|
||||
ffbuild_ldexeflags() {
|
||||
echo '-pie'
|
||||
|
||||
if [[ $VARIANT == *shared* ]]; then
|
||||
# Can't escape escape hell
|
||||
echo --extra-ldexeflags=\'-Wl,-rpath='\\\\\\\$\\\$ORIGIN'\\ -Wl,-rpath='\\\\\\\$\\\$ORIGIN/../lib'\'
|
||||
echo -Wl,-rpath='\\\\\\\$\\\$ORIGIN'
|
||||
echo -Wl,-rpath='\\\\\\\$\\\$ORIGIN/../lib'
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue