eglibc: (re)add eglibc's iconv implementation, make build with libiconv optional

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2012-01-16 12:31:50 +01:00
parent bbb0624df2
commit 7a9cdf4d8a
3 changed files with 8 additions and 6 deletions

View File

@ -35,6 +35,10 @@ fi
# Target system library C (eglibc)
TARGET_LIBC="eglibc"
# Target iconv implementation (libiconv)
# leave empty if we are using glibc's gconv
ICONV=""
# Library strip
LIBSTRIP="yes"

View File

@ -77,7 +77,7 @@ cat >option-groups.config <<EOF
OPTION_EGLIBC_CATGETS = y
# libiconv replacement:
OPTION_EGLIBC_CHARSETS = n
OPTION_EGLIBC_CHARSETS = y
OPTION_EGLIBC_DB_ALIASES = n
OPTION_EGLIBC_LOCALES = n

View File

@ -49,11 +49,9 @@ mkdir -p $INSTALL/usr/bin
cp $PKG_BUILD/objdir-$1/locale/locale $INSTALL/usr/bin
# libiconv replacement:
# mkdir -p $INSTALL/usr/lib/gconv
# cp $PKG_BUILD/iconvdata/gconv-modules $INSTALL/usr/lib/gconv
# didn't yet find a way to separate only needed modules.
# the way they are used is described within gconv-modules though
# cp $PKG_BUILD/objdir-$1/iconvdata/*.so $INSTALL/usr/lib/gconv
mkdir -p $INSTALL/usr/lib/gconv
cp $PKG_BUILD/iconvdata/gconv-modules $INSTALL/usr/lib/gconv
cp $PKG_BUILD/objdir-$1/iconvdata/*.so $INSTALL/usr/lib/gconv
mkdir -p $INSTALL/etc
cp $PKG_DIR/config/nsswitch.conf $INSTALL/etc