From: Yuta Satoh Date: Sun, 2 Oct 2016 09:03:17 +0000 (+0900) Subject: profiles/arch/amd64-fbsd/clang: add some variables for clang support. X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=ab7fc44e73fa6e50494d90fe57deb1e283f191d0;p=gentoo.git profiles/arch/amd64-fbsd/clang: add some variables for clang support. https://bugs.gentoo.org/show_bug.cgi?id=595878 --- diff --git a/profiles/arch/amd64-fbsd/clang/profile.bashrc b/profiles/arch/amd64-fbsd/clang/profile.bashrc index a6e226c03e6a..f741ccd1ab80 100644 --- a/profiles/arch/amd64-fbsd/clang/profile.bashrc +++ b/profiles/arch/amd64-fbsd/clang/profile.bashrc @@ -4,5 +4,6 @@ # Check if clang/clang++ exist before setting them so that we can more easily # switch to this profile and build stages. -type -P clang > /dev/null && export CC=clang -type -P clang++ > /dev/null && [ -f /usr/lib/libc++.so ] && export CXX=clang++ +# Some packages will require BUILD_{CC,CXX} variables, bug 595878. +type -P clang > /dev/null && export CC=clang && export BUILD_CC=clang +type -P clang++ > /dev/null && [ -f /usr/lib/libc++.so ] && export CXX=clang++ && export BUILD_CXX=clang++