https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100912
--- Comment #4 from Matheus Castanho <msc at linux dot ibm.com> --- Just for completeness, setting the rpath showed the same results: ~/build/gcc> /home/mscastanho/usr/bin/g++ -g -Wl,-rpath,$HOME/usr/lib64 ~/test-ieee128.cpp -o test-shared ~/build/gcc> ./test-shared 6.95329e-310 The output with LD_DEBUG=libs is very much the same as in my previous comment.