diff --git a/base/glibc/glibc.conf b/base/glibc/glibc.conf index 86ff2a251..0830ba104 100644 --- a/base/glibc/glibc.conf +++ b/base/glibc/glibc.conf @@ -211,10 +211,14 @@ pkg_glibc_postmake() # if atstage native; then - # install locales - # - eval $MAKE localedata/install-locales - cp ../localedata/SUPPORTED $root/usr/share/i18n/ + # install locales when building the default ABI or create + # a symlink for the other selected ABIs + if [ "$abi" == "$SDECFG_ABI_DEFAULT" ]; then + eval $MAKE localedata/install-locales + cp ../localedata/SUPPORTED $root/usr/share/i18n/ + else + ln -sf ../lib/locale $root$libdir/locale + fi if [ "$SDECFG_PKG_GLIBC_TLS" != 1 ]; then # install linuxthread manpages