summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuud Koolen <redlizard@gentoo.org>2014-11-24 21:38:16 +0000
committerRuud Koolen <redlizard@gentoo.org>2014-11-24 21:38:16 +0000
commit79520ee09c378c3a4cfdfaf6a58842957433b052 (patch)
treec54d0d6f3f95ca4ef39f9ebf44119dfbf53e55c2 /profiles/prefix
parentVersion bump (Hendrik v. Raven). (diff)
downloadhistorical-79520ee09c378c3a4cfdfaf6a58842957433b052.tar.gz
historical-79520ee09c378c3a4cfdfaf6a58842957433b052.tar.bz2
historical-79520ee09c378c3a4cfdfaf6a58842957433b052.zip
Use clang to compile selected packages on Yosemite. Patch by soon-to-be dev Guilherme Amadio.
Diffstat (limited to 'profiles/prefix')
-rw-r--r--profiles/prefix/ChangeLog7
-rw-r--r--profiles/prefix/darwin/macos/10.10/profile.bashrc16
2 files changed, 21 insertions, 2 deletions
diff --git a/profiles/prefix/ChangeLog b/profiles/prefix/ChangeLog
index c6fbe49b661b..0479fd00273b 100644
--- a/profiles/prefix/ChangeLog
+++ b/profiles/prefix/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for profiles/prefix
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/ChangeLog,v 1.436 2014/11/23 18:41:16 redlizard Exp $
+# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/ChangeLog,v 1.437 2014/11/24 21:38:16 redlizard Exp $
+
+ 24 Nov 2014; Ruud Koolen <redlizard@gentoo.org>
+ darwin/macos/10.10/profile.bashrc:
+ Use clang to compile selected packages on Yosemite. Patch by soon-to-be
+ dev Guilherme Amadio.
23 Nov 2014; Ruud Koolen <redlizard@gentoo.org> package.mask:
Remove obsolete bison-3.0.2 mask.
diff --git a/profiles/prefix/darwin/macos/10.10/profile.bashrc b/profiles/prefix/darwin/macos/10.10/profile.bashrc
index 7b6b6183dc56..99cfad457f3b 100644
--- a/profiles/prefix/darwin/macos/10.10/profile.bashrc
+++ b/profiles/prefix/darwin/macos/10.10/profile.bashrc
@@ -1,6 +1,20 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/darwin/macos/10.10/profile.bashrc,v 1.2 2014/10/21 18:56:28 grobian Exp $
+# $Header: /var/cvsroot/gentoo-x86/profiles/prefix/darwin/macos/10.10/profile.bashrc,v 1.3 2014/11/24 21:38:16 redlizard Exp $
# this is no typo, gcc-apple doesn't allow for 10.10 and mixes things up
export MACOSX_DEPLOYMENT_TARGET=10.9
+
+# some packages need to be compiled with clang on 10.10
+local pkgs_clang pkg
+pkgs_clang=(
+ dev-libs/glib
+ dev-lang/python
+ sys-devel/binutils-apple
+)
+for pkg in ${pkgs_clang[@]} ; do
+ if [[ ${CATEGORY}/${PN} == ${pkg} ]]; then
+ CC="clang -I${EPREFIX}/usr/include"
+ CXX="clang++ -I${EPREFIX}/usr/include"
+ fi
+done