The current cc-wrapper script seems to have trouble setting the rpath correctly. Hopefully #25047 will fix this.