Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 352320 Details for
Bug 475294
Please add multilib support to libcxxrt and libcxx.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
sample patch for libcxx-0.0_p20130531-r1.ebuild
475294-libcxx-0.0_p20130531-r1.ebuild.patch (text/plain), 2.45 KB, created by
Yuta SATOH
on 2013-06-30 14:11:41 UTC
(
hide
)
Description:
sample patch for libcxx-0.0_p20130531-r1.ebuild
Filename:
MIME Type:
Creator:
Yuta SATOH
Created:
2013-06-30 14:11:41 UTC
Size:
2.45 KB
patch
obsolete
>--- libcxx-0.0_p20130531-r1.ebuild.orig 2013-06-19 01:31:33.000000000 +0900 >+++ libcxx-0.0_p20130531-r1.ebuild 2013-06-30 23:10:14.000000000 +0900 >@@ -8,7 +8,7 @@ > > [ "${PV%9999}" != "${PV}" ] && SCM="subversion" || SCM="" > >-inherit cmake-utils ${SCM} base flag-o-matic toolchain-funcs multilib >+inherit cmake-utils cmake-multilib ${SCM} base flag-o-matic toolchain-funcs multilib > > DESCRIPTION="New implementation of the C++ standard library, targeting C++11" > HOMEPAGE="http://libcxx.llvm.org/" >@@ -66,26 +66,42 @@ > > if use static-libs ; then > local mycmakeargs=( "${mycmakeargs_base[@]}" "-DLIBCXX_ENABLE_SHARED=OFF" ) >- BUILD_DIR="${S}_static" cmake-utils_src_configure >+ BUILD_DIR="${S}_static" cmake-multilib_src_configure > fi > local mycmakeargs=( "${mycmakeargs_base[@]}" ) >- BUILD_DIR="${S}_shared" cmake-utils_src_configure >+ BUILD_DIR="${S}_shared" cmake-multilib_src_configure > } > > src_compile() { >- use static-libs && BUILD_DIR="${S}_static" cmake-utils_src_compile >- BUILD_DIR="${S}_shared" cmake-utils_src_compile >+ use static-libs && BUILD_DIR="${S}_static" cmake-multilib_src_compile >+ BUILD_DIR="${S}_shared" cmake-multilib_src_compile > } > > # Tests fail for now, if anybody is able to fix them, help is very welcome. > src_test() { >- cd "${S}/test" >- LD_LIBRARY_PATH="${S}_shared/lib:${LD_LIBRARY_PATH}" \ >+ do_libcxx_multilib_test(){ >+ cp -rp "${S}"/test/* "${BUILD_DIR}"/test/ >+ cd "${BUILD_DIR}/test" >+ >+ case ${ABI} in >+ x86|x86_fbsd) local add_cflags="-m32" ;; >+ esac >+ >+ if [[ ${ABI} == x86_fbsd ]] && has_multilib_profile ; then >+ export LD_32_LIBRARY_PATH="${BUILD_DIR}/lib:${LD_32_LIBRARY_PATH}" >+ else >+ export LD_LIBRARY_PATH="${BUILD_DIR}/lib:${LD_LIBRARY_PATH}" >+ fi >+ > CC="clang++" \ >- HEADER_INCLUDE="-I${S}/include" \ >- SOURCE_LIB="-L${S}_shared/lib" \ >- LIBS="-lm" \ >- ./testit || die >+ OPTIONS="${add_cflags} -std=c++0x -stdlib=libc++" \ >+ HEADER_INCLUDE="-I${BUILD_DIR}/include" \ >+ SOURCE_LIB="-L${BUILD_DIR}/lib" \ >+ LIBS="-lm" \ >+ ./testit || die >+ } >+ >+ BUILD_DIR="${S}_shared" multilib_foreach_abi do_libcxx_multilib_test > } > > gen_static_ldscript() { >@@ -119,10 +135,10 @@ > > src_install() { > if use static-libs ; then >- BUILD_DIR="${S}_static" cmake-utils_src_install >- gen_static_ldscript >+ BUILD_DIR="${S}_static" cmake-multilib_src_install >+ multilib_foreach_abi gen_static_ldscript > fi >- BUILD_DIR="${S}_shared" cmake-utils_src_install >+ BUILD_DIR="${S}_shared" cmake-multilib_src_install > } > > pkg_postinst() {
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 475294
:
352308
|
352314
|
352316
|
352318
|
352320
|
352386
|
352508
|
352514
|
352516
|
352588
|
352590
|
352596