FFmpeg-Builds/scripts.d/99-rpath.sh
BtbN 61debb00e5 Switch to a more direct Dockerfile.dl generation
Otherwise the entire build cache effectively invalidates the moment one
script changes..
2023-06-18 21:25:52 +02:00

41 lines
542 B
Bash
Executable file

#!/bin/bash
SCRIPT_SKIP="1"
ffbuild_enabled() {
[[ $TARGET == linux* ]]
}
ffbuild_dockerfinal() {
return 0
}
ffbuild_dockerdl() {
return 0
}
ffbuild_dockerlayer() {
return 0
}
ffbuild_dockerstage() {
return 0
}
ffbuild_dockerlayer_dl() {
return 0
}
ffbuild_dockerbuild() {
return 0
}
ffbuild_ldexeflags() {
echo '-pie'
if [[ $VARIANT == *shared* ]]; then
# Can't escape escape hell
echo -Wl,-rpath='\\\\\\\$\\\$ORIGIN'
echo -Wl,-rpath='\\\\\\\$\\\$ORIGIN/../lib'
fi
}