updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / gcc34 / gcc-localeversion.patch
blob054b7b9a18b53082fcecf2b065c4cba6d959d228
1 --- gcc/intl.c.orig 2006-10-18 19:09:47.000000000 +0000
2 +++ gcc/intl.c 2006-10-18 19:16:47.000000000 +0000
3 @@ -39,8 +39,8 @@
4 setlocale (LC_ALL, "");
5 #endif
7 - (void) bindtextdomain ("gcc", LOCALEDIR);
8 - (void) textdomain ("gcc");
9 + (void) bindtextdomain (PACKAGE, LOCALEDIR);
10 + (void) textdomain (PACKAGE);
13 #endif
14 --- gcc/Makefile.in.orig 2006-10-18 19:21:58.000000000 +0000
15 +++ gcc/Makefile.in 2006-10-18 19:22:12.000000000 +0000
16 @@ -2172,6 +2172,7 @@
17 intl.o: intl.c $(CONFIG_H) system.h intl.h Makefile
18 $(CC) $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
19 -DLOCALEDIR=\"$(localedir)\" \
20 + -DPACKAGE=\"$(PACKAGE)\" \
21 -c $(srcdir)/intl.c $(OUTPUT_OPTION)
23 $(top_builddir)/intl/libintl.a: intl.all
24 @@ -2479,6 +2480,7 @@
25 # Remake the info files.
27 doc: $(BUILD_INFO) $(GENERATED_MANPAGES) gccbug
28 +iv := -$(shell echo $(version) | awk -F. '{printf "%s.%s",$$1,$$2}')
30 INFOFILES = doc/cpp.info doc/gcc.info doc/gccint.info \
31 doc/gccinstall.info doc/cppinternals.info
32 @@ -3694,7 +3696,7 @@
33 GMSGFMT = @GMSGFMT@
34 MSGMERGE = msgmerge
36 -PACKAGE = @PACKAGE@
37 +PACKAGE = @PACKAGE@$(iv)
38 CATALOGS = @CATALOGS@
40 .PHONY: build- install- build-po install-po update-po