Sophie

Sophie

distrib > Altlinux > 4.1 > i586 > by-pkgid > 639e7aabceb4bbb26d861a3dcf0b621b > files > 14

i386-mingw32msvc-gcc-3.4.5-alt2.src.rpm

# DP: Set gettext's domain and textdomain to the versioned package name.

--- gcc/Makefile.in~	2004-07-21 22:42:58.000000000 +0200
+++ gcc/Makefile.in	2004-07-21 22:43:37.000000000 +0200
@@ -2311,6 +2311,7 @@
 intl.o: intl.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) intl.h Makefile
 	$(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
 	  -DLOCALEDIR=\"$(localedir)\" \
+	  -DPACKAGE=\"$(PACKAGE)\" \
 	  -c $(srcdir)/intl.c $(OUTPUT_OPTION)
 
 #
@@ -3848,7 +3848,7 @@
 GMSGFMT = @GMSGFMT@
 MSGMERGE = msgmerge
 
-PACKAGE = @PACKAGE@
+PACKAGE = $(shell echo @PACKAGE@|sed '$(program_transform_name)')
 CATALOGS = @CATALOGS@
 
 .PHONY: build- install- build-po install-po update-po
--- gcc/intl.c~	2004-07-21 22:42:58.000000000 +0200
+++ gcc/intl.c	2004-07-21 22:43:37.000000000 +0200
@@ -41,8 +41,8 @@
   setlocale (LC_ALL, "");
 #endif
 
-  (void) bindtextdomain ("gcc", LOCALEDIR);
-  (void) textdomain ("gcc");
+  (void) bindtextdomain (PACKAGE, LOCALEDIR);
+  (void) textdomain (PACKAGE);
 }
 
 #if defined HAVE_WCHAR_H && defined HAVE_WORKING_MBSTOWCS && defined HAVE_WCSWIDTH