This reverts commit 8ec5adc953. This broke stdenv on Darwin, see #15881. A Darwin user will need to fix the problem and un-revert. This commit causes CMake to use the same RPATH settings as the compiler, so it is obviously correct.
8ec5adc953