mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 16:13:50 +02:00
libcxx: update to 8.0.0.
This commit is contained in:
parent
c4599134c7
commit
0099fed3aa
1 changed files with 5 additions and 20 deletions
|
@ -1,41 +1,26 @@
|
||||||
# Template file for 'libcxx'
|
# Template file for 'libcxx'
|
||||||
pkgname=libcxx
|
pkgname=libcxx
|
||||||
version=7.0.1
|
version=8.0.0
|
||||||
revision=1
|
revision=1
|
||||||
wrksrc="${pkgname}-${version}.src"
|
wrksrc="${pkgname}-${version}.src"
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
configure_args+=" -DLIBCXX_CXX_ABI=libcxxabi -DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=ON
|
configure_args+=" -DLIBCXX_CXX_ABI=libcxxabi -DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=ON
|
||||||
-DLIBCXX_CXX_ABI_LIBRARY_PATH=${XBPS_CROSS_BASE}/usr/lib
|
-DLIBCXX_CXX_ABI_LIBRARY_PATH=${XBPS_CROSS_BASE}/usr/lib
|
||||||
-DLIBCXXABI_USE_LLVM_UNWINDER=1"
|
-DLIBCXXABI_USE_LLVM_UNWINDER=1"
|
||||||
hostmakedepends="llvm7 python"
|
hostmakedepends="llvm8 python"
|
||||||
makedepends="libcxxabi-devel llvm llvm-libunwind-devel"
|
makedepends="libcxxabi-devel llvm llvm-libunwind-devel"
|
||||||
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, C++14 and above"
|
||||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||||
homepage="https://libcxx.llvm.org"
|
|
||||||
license="NCSA, MIT"
|
license="NCSA, MIT"
|
||||||
|
homepage="https://libcxx.llvm.org"
|
||||||
distfiles="https://www.llvm.org/releases/${version}/${pkgname}-${version}.src.tar.xz"
|
distfiles="https://www.llvm.org/releases/${version}/${pkgname}-${version}.src.tar.xz"
|
||||||
checksum=020002618b319dc2a8ba1f2cba88b8cc6a209005ed8ad29f9de0c562c6ebb9f1
|
checksum=c2902675e7c84324fb2c1e45489220f250ede016cc3117186785d9dc291f9de2
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
# Doesn't build on AArch64 with GCC
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
|
||||||
aarch64*)
|
|
||||||
hostmakedepends+=" clang"
|
|
||||||
pre_configure() {
|
|
||||||
export CC="clang"
|
|
||||||
export CXX="clang++"
|
|
||||||
|
|
||||||
CFLAGS+=" --target=$XBPS_CROSS_TRIPLET --sysroot=${XBPS_CROSS_BASE}"
|
|
||||||
CXXFLAGS+=" --target=${XBPS_CROSS_TRIPLET} --sysroot=${XBPS_CROSS_BASE}"
|
|
||||||
}
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
*-musl) patch -Np1 <${FILESDIR}/libcxx-0001-musl-hacks.patch
|
*-musl) patch -Np1 <${FILESDIR}/libcxx-0001-musl-hacks.patch
|
||||||
|
|
Loading…
Add table
Reference in a new issue