bf1d82
#!/bin/bash
bf1d82
bf1d82
set -e
bf1d82
[ ! -z "$SRC_DIR" ] || (echo "env was not set" && false)
bf1d82
bf1d82
NAME="gettext-0.19.7"
bf1d82
cp --remove-destination -rup "$SRC_DIR/$NAME" "$BUILD_DIR/"
bf1d82
cd "$BUILD_DIR/$NAME"
bf1d82
bf1d82
export CFLAGS="-O2 $CFLAGS"
bf1d82
export CXXFLAGS="-O2 $CXXFLAGS"
bf1d82
bf1d82
./configure \
bf1d82
    --host="$HOST" \
bf1d82
    --prefix="$PREFIX" \
bf1d82
    --with-libiconv-prefix="$PREFIX" \
bf1d82
    --disable-java \
bf1d82
    --disable-native-java \
bf1d82
    --disable-csharp \
bf1d82
    --enable-static \
bf1d82
    --enable-threads=win32 \
bf1d82
    --without-emacs \
bf1d82
    --disable-openmp \
bf1d82
    --enable-shared \
bf1d82
    --disable-static
bf1d82
make -j8
bf1d82
make install
bf1d82
bf1d82
echo ""
bf1d82
echo "success"
bf1d82
echo ""