sys-libs/compiler-rt-sanitizers: prefer compiler from prefix on Darwin
authorFabian Groffen <grobian@gentoo.org>
Tue, 2 Jan 2018 13:24:28 +0000 (14:24 +0100)
committerFabian Groffen <grobian@gentoo.org>
Tue, 2 Jan 2018 13:53:55 +0000 (14:53 +0100)
Patch by Michael Weiser

Bug: https://bugs.gentoo.org/642644
Package-Manager: Portage-2.3.13, Repoman-2.3.3

sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-5.0.1.ebuild
sys-libs/compiler-rt-sanitizers/compiler-rt-sanitizers-9999.ebuild

index b57277b9fbe51d15d3147a509f54ccaec4a3635e..439a8e639d61581aca9c99cac46eab9d2bd5e1ee 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -101,6 +101,13 @@ src_configure() {
                strip-unsupported-flags
        fi
 
+       if use prefix && [[ "${CHOST}" == *-darwin* ]] ; then
+               mycmakeargs+=(
+                       # disable use of SDK for the system itself
+                       -DDARWIN_macosx_CACHED_SYSROOT=/
+               )
+       fi
+
        cmake-utils_src_configure
 
        if use test; then
index d13c7b67d32f72e33b155adb6b2a2d1748b354fb..ca1b110032930806968e71fd251e939bb2deba97 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -110,6 +110,13 @@ src_configure() {
                strip-unsupported-flags
        fi
 
+       if use prefix && [[ "${CHOST}" == *-darwin* ]] ; then
+               mycmakeargs+=(
+                       # disable use of SDK for the system itself
+                       -DDARWIN_macosx_CACHED_SYSROOT=/
+               )
+       fi
+
        cmake-utils_src_configure
 
        if use test; then