mirror of
https://github.com/BtbN/FFmpeg-Builds.git
synced 2025-06-12 05:17:39 +02:00
Build entire toolchain as PIC for proper static linking
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user