Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 408382 Details for
Bug 538364
sys-lib/libcxx: add ebuilds for libc++ and libc++abi for clang in prefix on OS X
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
updated ebuild for libc++abi 3.6.2
libcxxabi-3.6.2.ebuild (text/plain), 2.29 KB, created by
Michael Weiser
on 2015-08-06 08:23:35 UTC
(
hide
)
Description:
updated ebuild for libc++abi 3.6.2
Filename:
MIME Type:
Creator:
Michael Weiser
Created:
2015-08-06 08:23:35 UTC
Size:
2.29 KB
patch
obsolete
># Copyright 1999-2015 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >EAPI=5 > >inherit flag-o-matic > >S="${WORKDIR}/${P}.src" > >inherit eutils > >DESCRIPTION="New implementation of low level support for a standard C++ library" >HOMEPAGE="http://libcxxabi.llvm.org/" >SRC_URI="http://llvm.org/releases/${PV}/${P}.src.tar.xz" > >LICENSE="|| ( UoI-NCSA MIT )" >SLOT="0" >KEYWORDS="~x64-macos ~x86-macos" >IUSE="" > >RDEPEND="" >DEPEND="${RDEPEND} > sys-libs/libcxx-headers > sys-devel/clang" > >pkg_setup() { > if [[ ${CHOST} == *darwin* ]] ; then > MY_CC=$(tc-getCC) > MY_CXX=$(tc-getCXX) > if [[ ${MY_CC} != *clang* || ${MY_CXX} != *clang++* ]] ; then > eerror "${PN} needs to be built with clang++. Please do not override" > eerror "CC ($MY_CC) and CXX ($MY_CXX)" > eerror "or point them at clang and eerror clang++ respectively." > die > fi > return > fi >} > >src_configure() { > tc-export CC CXX >} > >src_prepare() { > cd "${S}" > > # libc++abi needs stack unwinding functions provided by libSystem on Mac OS X > # >= 10.6. On < 10.6 they're in libgcc_s. So force link against that. > # Additionally, the crt1.o provided by our gcc-apple toolchain isn't > # universal. Since that's needed for linking any program on OSX < > # 10.7, universal support is effectively broken on those older OSXes > # even if clang and libc++{,abi} were to support it. So we can just > # disable universal compilation. > gcc_s=gcc_s.1 > [[ "${CHOST##*-darwin}" -eq 9 ]] && gcc_s=gcc_s.10.5 > [[ "${CHOST##*-darwin}" -eq 8 ]] && gcc_s=gcc_s.10.4 > [[ "${CHOST##*-darwin}" -le 9 ]] && \ > sed -i -e "s,-lSystem,-lSystem -l${gcc_s},g" \ > -e "s,-arch i386 -arch x86_64,,g" \ > lib/buildit > > # assert.h refers to eprintf which is nowhere to be found. That's why > # everyone (libstdc++, clang compiler-rt) bring their own > # implementation. Ours is nicked from Apple's patch to libstdc++-39. > [[ "${CHOST##*-darwin}" -le 8 ]] && \ > epatch "${FILESDIR}"/${PN}-3.5.1-eprintf.patch > > sed -i -e "s,/usr/lib/libc++abi\.dylib,${EPREFIX}/usr/lib/libc++abi.dylib,g" \ > lib/buildit >} > >src_compile() { > cd "${S}/lib" || die > export TRIPLE=-apple- > ./buildit || die >} > >src_install() { > dolib.so lib/libc++*dylib > > # do not install unwind.h and others since they're only in-source > # build-time dependencies > insinto /usr/include > doins -r include/cxxabi.h >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 538364
:
395264
|
395852
|
395854
|
395882
|
396062
|
396064
|
408380
|
408382
|
408384
|
450912
|
450914
|
450916
|
511952
|
511954
|
511982