gcc12-libtool-no-rpath.patch 1.3 KB

1234567891011121314151617181920212223242526272829
  1. diff -rup binutils.orig/ltmain.sh binutils-2.37/ltmain.sh
  2. --- binutils.orig/ltmain.sh 2022-01-27 16:23:09.304207432 +0000
  3. +++ binutils-2.37/ltmain.sh 2022-01-27 16:23:18.380143759 +0000
  4. @@ -7103,6 +7103,7 @@ EOF
  5. rpath="$finalize_rpath"
  6. test "$mode" != relink && rpath="$compile_rpath$rpath"
  7. for libdir in $rpath; do
  8. + case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64) continue;; esac
  9. if test -n "$hardcode_libdir_flag_spec"; then
  10. if test -n "$hardcode_libdir_separator"; then
  11. if test -z "$hardcode_libdirs"; then
  12. @@ -7798,6 +7799,7 @@ EOF
  13. rpath=
  14. hardcode_libdirs=
  15. for libdir in $compile_rpath $finalize_rpath; do
  16. + case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64) continue;; esac
  17. if test -n "$hardcode_libdir_flag_spec"; then
  18. if test -n "$hardcode_libdir_separator"; then
  19. if test -z "$hardcode_libdirs"; then
  20. @@ -7849,6 +7851,7 @@ EOF
  21. rpath=
  22. hardcode_libdirs=
  23. for libdir in $finalize_rpath; do
  24. + case "$libdir" in /usr/lib|/usr/lib64|/usr/lib/../lib|/usr/lib/../lib64) continue;; esac
  25. if test -n "$hardcode_libdir_flag_spec"; then
  26. if test -n "$hardcode_libdir_separator"; then
  27. if test -z "$hardcode_libdirs"; then
  28. Only in binutils-2.37: ltmain.sh.orig