mirror of
https://github.com/BtbN/FFmpeg-Builds.git
synced 2025-06-12 05:17:39 +02:00
Set $ORIGIN based rpath on shared linux binaries
This commit is contained in:
28
scripts.d/99-rpath.sh
Normal file
28
scripts.d/99-rpath.sh
Normal file
@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
ffbuild_enabled() {
|
||||
[[ $TARGET == linux* ]]
|
||||
}
|
||||
|
||||
ffbuild_dockerfinal() {
|
||||
return 0
|
||||
}
|
||||
|
||||
ffbuild_dockerlayer() {
|
||||
return 0
|
||||
}
|
||||
|
||||
ffbuild_dockerstage() {
|
||||
return 0
|
||||
}
|
||||
|
||||
ffbuild_dockerbuild() {
|
||||
return 0
|
||||
}
|
||||
|
||||
ffbuild_configure() {
|
||||
if [[ $VARIANT == *shared* ]]; then
|
||||
# Can't escape escape hell
|
||||
echo --extra-ldexeflags=\'-Wl,-rpath='\\\\\\\$\\\$ORIGIN'\\ -Wl,-rpath='\\\\\\\$\\\$ORIGIN/../lib'\'
|
||||
fi
|
||||
}
|
Reference in New Issue
Block a user