mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
libcxx: update to 6.0.1.
[ci skip]
This commit is contained in:
parent
cf81612d35
commit
5c2fa80beb
1 changed files with 21 additions and 22 deletions
|
@ -1,42 +1,41 @@
|
||||||
# Template file for 'libcxx'
|
# Template file for 'libcxx'
|
||||||
pkgname=libcxx
|
pkgname=libcxx
|
||||||
version=6.0.0
|
version=6.0.1
|
||||||
revision=1
|
revision=1
|
||||||
|
wrksrc="${pkgname}-${version}.src"
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
hostmakedepends="clang llvm python"
|
hostmakedepends="clang llvm python"
|
||||||
makedepends="libcxxabi-devel llvm llvm-libunwind-devel"
|
makedepends="libcxxabi-devel llvm llvm-libunwind-devel"
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
|
||||||
arm*)
|
|
||||||
_broken="libcxxabi doesn't build on arm."
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
configure_args+="
|
|
||||||
-DLIBCXX_CXX_ABI=libcxxabi
|
|
||||||
-DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=ON
|
|
||||||
-DLIBCXX_CXX_ABI_LIBRARY_PATH=${XBPS_CROSS_BASE}/usr/lib
|
|
||||||
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
|
|
||||||
"
|
|
||||||
LDFLAGS="-Wl,--no-as-needed -lunwind -Wl,--as-needed"
|
|
||||||
esac
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
|
||||||
*-musl) configure_args+=" -DLIBCXX_HAS_MUSL_LIBC=YES"
|
|
||||||
esac
|
|
||||||
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>"
|
||||||
homepage="http://libcxx.llvm.org"
|
homepage="http://libcxx.llvm.org"
|
||||||
license="NCSA, MIT"
|
license="NCSA, MIT"
|
||||||
distfiles="http://www.llvm.org/releases/${version}/${pkgname}-${version}.src.tar.xz"
|
distfiles="http://www.llvm.org/releases/${version}/${pkgname}-${version}.src.tar.xz"
|
||||||
checksum=70931a87bde9d358af6cb7869e7535ec6b015f7e6df64def6d2ecdd954040dd9
|
checksum=7654fbc810a03860e6f01a54c2297a0b9efb04c0b9aa0409251d9bdb3726fc67
|
||||||
wrksrc=${pkgname}-${version}.src
|
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
arm*) _broken="libcxxabi doesn't build on arm." ;;
|
||||||
|
*) configure_args+="
|
||||||
|
-DLIBCXX_CXX_ABI=libcxxabi
|
||||||
|
-DLIBCXX_ENABLE_STATIC_ABI_LIBRARY=ON
|
||||||
|
-DLIBCXX_CXX_ABI_LIBRARY_PATH=${XBPS_CROSS_BASE}/usr/lib
|
||||||
|
-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
|
||||||
|
"
|
||||||
|
LDFLAGS="-Wl,--no-as-needed -lunwind -Wl,--as-needed"
|
||||||
|
esac
|
||||||
|
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
*-musl) configure_args+=" -DLIBCXX_HAS_MUSL_LIBC=YES"
|
||||||
|
esac
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
*-musl)
|
*-musl) patch -Np1 <${FILESDIR}/libcxx-0001-musl-hacks.patch
|
||||||
patch -Np1 <${FILESDIR}/libcxx-0001-musl-hacks.patch
|
sed -i 's/!defined(_GCC_MAX_ALIGN_T)/& \&\& !defined(__DEFINED_max_align_t)/' include/stddef.h ;;
|
||||||
sed -i 's/!defined(_GCC_MAX_ALIGN_T)/& \&\& !defined(__DEFINED_max_align_t)/' include/stddef.h
|
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
export CC="clang"
|
export CC="clang"
|
||||||
export CXX="clang++"
|
export CXX="clang++"
|
||||||
|
|
Loading…
Add table
Reference in a new issue