99-rpath.sh 495 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/bin/bash
  2. SCRIPT_SKIP="1"
  3. ffbuild_enabled() {
  4. [[ $TARGET == linux* ]]
  5. }
  6. ffbuild_dockerfinal() {
  7. return 0
  8. }
  9. ffbuild_dockerdl() {
  10. true
  11. }
  12. ffbuild_dockerlayer() {
  13. return 0
  14. }
  15. ffbuild_dockerstage() {
  16. return 0
  17. }
  18. ffbuild_dockerbuild() {
  19. return 0
  20. }
  21. ffbuild_ldexeflags() {
  22. echo '-pie'
  23. if [[ $VARIANT == *shared* ]]; then
  24. # Can't escape escape hell
  25. echo -Wl,-rpath='\\\\\\\$\\\$ORIGIN'
  26. echo -Wl,-rpath='\\\\\\\$\\\$ORIGIN/../lib'
  27. fi
  28. }