https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68650
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This smells like -ldl is not being added to the link line when it should be and that overriding of LDFLAGS causing that.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68650
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This smells like -ldl is not being added to the link line when it should be and that overriding of LDFLAGS causing that.