libcxx: don't use libcxxabi on arm.

This commit is contained in:
Christian Neukirchen 2016-03-29 19:47:28 +02:00
parent d283ea9a6d
commit 0c8a982651

View file

@ -1,15 +1,21 @@
# Template file for 'libcxx' # Template file for 'libcxx'
pkgname=libcxx pkgname=libcxx
version=3.8.0 version=3.8.0
revision=2 revision=3
build_style=cmake build_style=cmake
hostmakedepends="cmake" hostmakedepends="cmake"
configure_args="-DLIBCXX_CXX_ABI=libcxxabi -DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=ON" case "$XBPS_TARGET_MACHINE" in
arm*)
# libcxxabi doesn't build on arm.
;;
*)
configure_args+=" -DLIBCXX_CXX_ABI=libcxxabi -DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=ON"
makedepends="llvm-libunwind-devel libcxxabi-devel"
LDFLAGS="-Wl,--no-as-needed -lunwind -Wl,--as-needed"
esac
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_MACHINE" in
*-musl) configure_args+=" -DLIBCXX_HAS_MUSL_LIBC=YES" *-musl) configure_args+=" -DLIBCXX_HAS_MUSL_LIBC=YES"
esac esac
makedepends="llvm-libunwind-devel libcxxabi-devel"
LDFLAGS="-Wl,--no-as-needed -lunwind -Wl,--as-needed"
make_build_args="VERBOSE=1" make_build_args="VERBOSE=1"
short_desc="New implementation of the C++ standard library, targeting C++11" short_desc="New implementation of the C++ standard library, targeting C++11"
maintainer="Juan RP <xtraeme@voidlinux.eu>" maintainer="Juan RP <xtraeme@voidlinux.eu>"