redlizard 14/11/24 21:38:16 Modified: profile.bashrc Log: Use clang to compile selected packages on Yosemite. Patch by soon-to-be dev Guilherme Amadio.
Revision Changes Path 1.3 profiles/prefix/darwin/macos/10.10/profile.bashrc file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/profiles/prefix/darwin/macos/10.10/profile.bashrc?rev=1.3&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/profiles/prefix/darwin/macos/10.10/profile.bashrc?rev=1.3&content-type=text/plain diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/profiles/prefix/darwin/macos/10.10/profile.bashrc?r1=1.2&r2=1.3 Index: profile.bashrc =================================================================== RCS file: /var/cvsroot/gentoo-x86/profiles/prefix/darwin/macos/10.10/profile.bashrc,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- profile.bashrc 21 Oct 2014 18:56:28 -0000 1.2 +++ profile.bashrc 24 Nov 2014 21:38:16 -0000 1.3 @@ -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
