[Bug libstdc++/56779] [4.8/4.9 Regression] libstdc++.so: undefined reference to `libintl_textdomain'
glisse at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jan 20 19:50:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56779
--- Comment #16 from Marc Glisse <glisse at gcc dot gnu.org> ---
> AC_SEARCH_LIBS(gettext, intl, [], USE_NLS=no)
seems a bit crude, as it results in this link test:
#ifdef __cplusplus
extern "C"
#endif
char gettext ();
int
main ()
{
return gettext ();
;
return 0;
}
when here we would need something closer to:
#include <libintl.h>
int main (int argc, char**argv)
{
gettext(argv[0]);
return 0;
}
so that if libintl.h redirects gettext to libintl_gettext the link test is for
the right symbol.
More information about the Gcc-bugs
mailing list