http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47692 --- Comment #13 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> 2011-02-17 01:12:44 UTC --- Always set LD_LIBRARY_PATH or another way is to compile with -static to make sure the correct runtime functions get invoked.