profiles/arch/amd64-fbsd/clang: add some variables for clang support.
authorYuta Satoh <nigoro.dev@gmail.com>
Sun, 2 Oct 2016 09:03:17 +0000 (18:03 +0900)
committerAlexis Ballier <aballier@gentoo.org>
Mon, 3 Oct 2016 17:02:12 +0000 (19:02 +0200)
https://bugs.gentoo.org/show_bug.cgi?id=595878

profiles/arch/amd64-fbsd/clang/profile.bashrc

index a6e226c03e6a8a2f7efb9ee1e99a71d0a38d9640..f741ccd1ab80bcd6b21ee09223e25d5e2e12e80c 100644 (file)
@@ -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++