http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42028
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-28 05:13:31 UTC --- This is a standard issue with any kind of shared library really. You either set LD_LIBRARY_PATH or edit /etc/ld.conf or use -R . There is not much can be done on GCC's side. So closing this bug as invalid.