https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89166
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- If you use -static in LDFLAGS, you will have other issues. What are you trying to do? This is like telling the doctor it hurts when I bend my arm the wrong way and then the doctor tells you stop doing that.