OSDN Git Service

Add a target so that people can download and use pregenerated locale data
authorManuel Novoa III <mjn3@codepoet.org>
Fri, 20 Dec 2002 21:52:24 +0000 (21:52 -0000)
committerManuel Novoa III <mjn3@codepoet.org>
Fri, 20 Dec 2002 21:52:24 +0000 (21:52 -0000)
files instead of generating approx 40Mb of glibc locales to get the 300+
locales currently supported.

extra/locale/Makefile

index 7787f8a..983c91c 100644 (file)
@@ -111,6 +111,12 @@ links-target: locale_data.o uClibc_locale_data.h
        ln -sf ../../../extra/locale/locale_data.o ../../libc/misc/locale
        cp uClibc_locale_data.h ../../libc/sysdeps/linux/common/bits/
 
+pregen:
+       $(CC) $(CFLAGS_mmap) -c locale_data.c
+       $(STRIPTOOL) -x -R .note -R .comment locale_data.o
+       ln -sf ../../../extra/locale/locale_data.o ../../libc/misc/locale
+       cp uClibc_locale_data.h ../../libc/sysdeps/linux/common/bits/
+
 clean:
        rm -f *.[oa] *~ core
        rm -f gen_wc8bit gen_wctype gen_locale gen_ldc gen_collate