diff --git a/srcpkgs/libcxx/template b/srcpkgs/libcxx/template index 6c2e4c846f..e691aec8a5 100644 --- a/srcpkgs/libcxx/template +++ b/srcpkgs/libcxx/template @@ -1,15 +1,21 @@ # Template file for 'libcxx' pkgname=libcxx version=3.8.0 -revision=2 +revision=3 build_style=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 *-musl) configure_args+=" -DLIBCXX_HAS_MUSL_LIBC=YES" esac -makedepends="llvm-libunwind-devel libcxxabi-devel" -LDFLAGS="-Wl,--no-as-needed -lunwind -Wl,--as-needed" make_build_args="VERBOSE=1" short_desc="New implementation of the C++ standard library, targeting C++11" maintainer="Juan RP "