summaryrefslogtreecommitdiff
path: root/localedef
diff options
context:
space:
mode:
Diffstat (limited to 'localedef')
-rw-r--r--localedef/ChangeLog.eglibc5
-rw-r--r--localedef/Makefile.in14
2 files changed, 19 insertions, 0 deletions
diff --git a/localedef/ChangeLog.eglibc b/localedef/ChangeLog.eglibc
index 4965924b7..26ec79ae2 100644
--- a/localedef/ChangeLog.eglibc
+++ b/localedef/ChangeLog.eglibc
@@ -1,3 +1,8 @@
+2006-12-26 Jim Blandy <jimb@codesourcery.com>
+
+ * Makefile.in: Include option-groups.mak from glibc. Trim
+ locale list if OPTION_EGLIBC_LOCALES is not enabled.
+
2006-09-07 Richard Sandiford <richard@codesourcery.com>
Initial commit.
diff --git a/localedef/Makefile.in b/localedef/Makefile.in
index bb192e219..5fecb9d60 100644
--- a/localedef/Makefile.in
+++ b/localedef/Makefile.in
@@ -118,8 +118,22 @@ vasprintf.o: $(srcdir)/vasprintf.c
#----------------------------------------------------------------------------
# Based on localedata/Makefile
#----------------------------------------------------------------------------
+.. = glibc/
+
+# Get EGLIBC's option group variable definitions. By default, this
+# will look for an 'option-groups.config' file in localedef's top
+# build directory. If you are using a single localedef build tree
+# with several different option group configurations, set
+# option_group_config_file on the make command line to the name of the
+# option group config file to use.
+include glibc/option-groups.mak
include glibc/localedata/SUPPORTED
+# Only install locale data if OPTION_EGLIBC_LOCALES is selected.
+ifneq ($(OPTION_EGLIBC_LOCALES),y)
+SUPPORTED-LOCALES :=
+endif
+
INSTALL-SUPPORTED-LOCALES=$(addprefix install-, $(SUPPORTED-LOCALES))
LOCALEDEF=\