mirror of
https://github.com/BtbN/FFmpeg-Builds.git
synced 2025-06-12 05:17:39 +02:00
Enable shared linux programs (EXPERIMENTAL)
This commit is contained in:
@ -21,22 +21,14 @@ ffbuild_dockerbuild() {
|
||||
}
|
||||
|
||||
ffbuild_ldflags() {
|
||||
if [[ $VARIANT == *shared* ]]; then
|
||||
#if [[ $TARGET == *64* ]]; then
|
||||
# echo "-Wl,--dynamic-linker=/lib64/ld-linux-x86-64.so.2"
|
||||
#else
|
||||
# echo "-Wl,--dynamic-linker=/lib/ld-linux.so.2"
|
||||
#fi
|
||||
return 0
|
||||
else
|
||||
if [[ $VARIANT != *shared* ]]; then
|
||||
echo "-pie -fPIE -static"
|
||||
fi
|
||||
}
|
||||
|
||||
ffbuild_configure() {
|
||||
# Any dynamic executables linked against musl need its dynamic loader to run
|
||||
# Thus it's impossible to build both the libraries and the programs, since
|
||||
# with shared libs, the programs need to be dynamic, and in turn needs the musl
|
||||
# dynamic loader at runtime.
|
||||
[[ $VARIANT == *shared* ]] && echo --disable-programs
|
||||
if [[ $VARIANT == *shared* ]]; then
|
||||
# Can't escape hell
|
||||
echo --extra-ldexeflags=\'-Wl,-rpath='\\\\\\\$\\\$ORIGIN'\\ -Wl,-rpath='\\\\\\\$\\\$ORIGIN/../lib'\'
|
||||
fi
|
||||
}
|
||||
|
Reference in New Issue
Block a user