This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] hardcoded name for textdomain in gcc/intl.c
- From: Matthias Klose <doko at cs dot tu-berlin dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Fri, 16 May 2003 08:09:23 +0200
- Subject: [PATCH] hardcoded name for textdomain in gcc/intl.c
This is a no-change, as long as PACKAGE doesn't get redefined.
Ok to checkin?
2003-05-16 Matthias Klose <doko@debian.org>
* gcc/Makefile.in (intl.o): Pass PACKAGE.
* gcc/intl.c: Use it.
diff -ur gcc-20030118/gcc/Makefile.in src/gcc/Makefile.in
--- gcc/Makefile.in~ 2003-01-09 19:30:05.000000000 +0100
+++ gcc/Makefile.in 2003-01-20 01:21:02.000000000 +0100
@@ -2164,6 +2164,7 @@
intl.o: intl.c $(CONFIG_H) system.h intl.h Makefile
$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
-DLOCALEDIR=\"$(localedir)\" \
+ -DPACKAGE=\"$(PACKAGE)\" \
-c $(srcdir)/intl.c $(OUTPUT_OPTION)
$(top_builddir)/intl/libintl.a: intl.all
--- gcc/intl.c~ 2002-03-02 00:38:00.000000000 +0100
+++ gcc/intl.c 2003-04-28 13:13:22.000000000 +0200
@@ -39,8 +39,8 @@
setlocale (LC_ALL, "");
#endif
- (void) bindtextdomain ("gcc", LOCALEDIR);
- (void) textdomain ("gcc");
+ (void) bindtextdomain (PACKAGE, LOCALEDIR);
+ (void) textdomain (PACKAGE);
}
#endif