From c9190a70fe89dca07457a2ef1d14799a355cefad Mon Sep 17 00:00:00 2001
From: Juan RP <xtraeme@gmail.com>
Date: Tue, 18 Jun 2013 15:16:31 +0200
Subject: [PATCH] llvm: fix typo; unconditionally unset build vars.

---
 srcpkgs/llvm/template | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/srcpkgs/llvm/template b/srcpkgs/llvm/template
index 3dc164dc1d..d59573a47f 100644
--- a/srcpkgs/llvm/template
+++ b/srcpkgs/llvm/template
@@ -36,11 +36,10 @@ post_extract() {
 }
 
 do_configure() {
-	if [ "$CROSS_BUILD" ]; then
-		unset CC CXX CPP AR AS RANLIB CFLAGS LDFLAGS CPPFLAGS
-	fi
+	unset CC CXX CPP AR AS RANLIB CFLAGS LDFLAGS CPPFLAGS
+
 	# Don't let llvm strip bins.
-	sed -e '/.Install.StripFlag += -s/d' -i Makefile.rules
+	sed -e '/Install.StripFlag += -s/d' -i Makefile.rules
 
 	# Fix installation directories, ./configure doesn't seem to set them right
 	sed -i -e 's:\$(PROJ_prefix)/etc/llvm:/etc/llvm:' \
@@ -54,6 +53,7 @@ do_configure() {
 
 do_build() {
 	unset CC CXX CPP AR AS RANLIB CFLAGS LDFLAGS CPPFLAGS
+
 	cd build
 	make ${makejobs}
 }