2021-05-14 17:23:11 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
ffbuild_enabled() {
|
|
|
|
[[ $TARGET == linux* ]]
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_dockerfinal() {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_dockerlayer() {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_dockerstage() {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
ffbuild_dockerbuild() {
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2021-05-14 20:06:51 +00:00
|
|
|
ffbuild_ldexeflags() {
|
|
|
|
echo '-pie'
|
|
|
|
|
2021-05-14 17:23:11 +00:00
|
|
|
if [[ $VARIANT == *shared* ]]; then
|
|
|
|
# Can't escape escape hell
|
2021-05-14 20:06:51 +00:00
|
|
|
echo -Wl,-rpath='\\\\\\\$\\\$ORIGIN'
|
|
|
|
echo -Wl,-rpath='\\\\\\\$\\\$ORIGIN/../lib'
|
2021-05-14 17:23:11 +00:00
|
|
|
fi
|
|
|
|
}
|