llvm: fix typo; unconditionally unset build vars.

This commit is contained in:
Juan RP 2013-06-18 15:16:31 +02:00
parent b6209fa29c
commit c9190a70fe

View File

@ -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}
}