xerces-c: make build with libiconv optional

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2012-01-16 12:32:58 +01:00
parent 7a9cdf4d8a
commit e9bc71b5a9
2 changed files with 5 additions and 3 deletions

View File

@ -25,7 +25,9 @@
# xerces_c fails to build with LTO support
strip_lto
export LDFLAGS="$LDFLAGS -liconv"
if [ "$ICONV" = "libiconv" ]; then
export LDFLAGS="$LDFLAGS -liconv"
fi
cd $PKG_BUILD
./configure --host=$TARGET_NAME \

View File

@ -25,8 +25,8 @@ PKG_ARCH="any"
PKG_LICENSE="APL"
PKG_SITE="http://xml.apache.org/xerces-c/"
PKG_URL="http://mirror.switch.ch/mirror/apache/dist/xerces/c/3/sources/$PKG_NAME-$PKG_VERSION.tar.gz"
PKG_DEPENDS="libiconv curl"
PKG_BUILD_DEPENDS="toolchain libiconv curl"
PKG_DEPENDS="$ICONV curl"
PKG_BUILD_DEPENDS="toolchain $ICONV curl"
PKG_PRIORITY="optional"
PKG_SECTION="textproc"
PKG_SHORTDESC="xerces-c: A C++ XML parser"