Commit e3c7fb2c authored by Łukasz Nowak's avatar Łukasz Nowak

Revert "gcc: make the ld wrapper add paths via -rpath if there's already an -rpath arg"

This reverts commit 3d12ddae.
parent 3fe51673
Pipeline #11845 running with stage
...@@ -42,11 +42,13 @@ post-install = ...@@ -42,11 +42,13 @@ post-install =
done done
cat <<EOF >ld cat <<EOF >ld
#!/bin/sh -e #!/bin/sh -e
for x; do case \$x in -rpath=*) case \$#:\$1 in 0:|1:-*) ;; *)
set -- "\$@" $2 if [ "\$LD_RUN_PATH" ]
! break then LD_RUN_PATH=\$LD_RUN_PATH$1
else set -- "\$@" $2
fi
;; ;;
esac; done && export LD_RUN_PATH=\$${LD_RUN_PATH:+\$LD_RUN_PATH:}$${1#:} esac
exec ${binutils:location}/bin/ld "\$@" exec ${binutils:location}/bin/ld "\$@"
EOF EOF
chmod +x ld chmod +x ld
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment