summaryrefslogtreecommitdiff
path: root/gcc/intl/textdomain.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/intl/textdomain.c')
-rw-r--r--gcc/intl/textdomain.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/intl/textdomain.c b/gcc/intl/textdomain.c
index 88557460f3b..e25a0866196 100644
--- a/gcc/intl/textdomain.c
+++ b/gcc/intl/textdomain.c
@@ -39,6 +39,14 @@
# include "libgettext.h"
#endif
+/* The internal variables in the standalone libintl.a must have different
+ names than the internal variables in GNU libc, otherwise programs
+ using libintl.a cannot be linked statically. */
+#if !defined _LIBC
+# define _nl_default_default_domain _nl_default_default_domain__
+# define _nl_current_default_domain _nl_current_default_domain__
+#endif
+
/* @@ end of prolog @@ */
/* Name of the default text domain. */