X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=stage1%2Fcis-gettext;h=f7ddee3b67aaae6c040c0ab0e10d845bdd9e13e6;hb=6d3d50c17b24ef41f917f5776696eca810198092;hp=9f7410dd8f7237b886e7e87bf3dbf1f250824897;hpb=16cc35ba4890382ee9368a176e4f5a7fa773b7a6;p=hvlinux.git diff --git a/stage1/cis-gettext b/stage1/cis-gettext index 9f7410d..f7ddee3 100755 --- a/stage1/cis-gettext +++ b/stage1/cis-gettext @@ -1,4 +1,12 @@ #!/bin/sh +set -o errexit + +# First argument of this script is the package name. +# Remaining arguments are additional configure options. + +PACKAGE=${1} +shift +CONFIGURE_OPTS=${*} # Reading system configuration informations, functions and package versions. source ../sysinfos @@ -6,15 +14,24 @@ source ../functions source ../packages-list # Applying patches (if any) -apply_patches ${1} && +apply_patches ${PACKAGE} + +cd ${LFS_TMP}/${PACKAGE}/gettext-tools + +# When cross-compiling the Gettext configure script assumes we don't have a +# working wcwidth when we do. The following will fix possible compilation +# errors because of this assumption: +echo "gl_cv_func_wcwidth_works=yes" > config.cache -cd ${LFS_TMP}/${1}/gettext-tools && -./configure \ +CC="${CC} ${CLFS_BUILDFLAGS}" CXX="${CXX} ${CLFS_BUILDFLAGS}" \ + ./configure \ --prefix=/tools \ - --disable-shared && -make -j ${MAKEJOBS} -C gnulib-lib && -make -j ${MAKEJOBS} -C src msgfmt && + --build=${CLFS_HOST} \ + --host=${CLFS_TARGET} \ + --disable-shared \ + --cache-file=config.cache +${HVMAKE} -C gnulib-lib +${HVMAKE} -C src msgfmt cp -v src/msgfmt /tools/bin -# Return last error exit $?