You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
731 B
Plaintext
22 lines
731 B
Plaintext
if [ -f "${LIB_DIR}/libiconv.a" ]; then
|
|
echo "lib exists already in ${LIB_DIR}. If you want to rebuild it, delete the existing one."
|
|
exit 0
|
|
fi
|
|
|
|
ICONV_DIR="${TMP_DIR}/libiconv"
|
|
if [ ! -d "${ICONV_DIR}" ]; then
|
|
git clone -b "v1.16_without_lib_prefix_defines" https://gitea.pep.foundation/buff/libiconv.git
|
|
fi
|
|
pushd "${ICONV_DIR}"
|
|
export LDFLAGS="-arch ${ARCH}"
|
|
export CC="$(xcrun --sdk ${SDK} -f clang) -arch ${ARCH} -isysroot ${SDK_PATH}"
|
|
|
|
PKG_CONFIG_ALLOW_CROSS=1 PKG_CONFIG_PATH="${CURRENT_LIB_DIR}/lib/pkgconfig" ./configure --host=${HOST} --prefix=${CURRENT_LIB_DIR} --enable-static=yes --enable-shared=no
|
|
|
|
make clean
|
|
make -j4
|
|
make install
|
|
unset CFLAGS
|
|
unset LDFLAGS
|
|
unset CC
|
|
popd |