------- Comment #10 from redi at gcc dot gnu dot org 2010-04-21 16:13 ------- P.S. the workaround is a hack and not ideal, because it adds RPATH=$ORIGIN to every binary object that gets built including the front-end drivers, cc1plus, collect2 etc. but it is only needed by shared libs that depend on libgcc_s.so
That's why I'd rather see a configure option which would cause it to be set only when building those libs -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32354