Disable libprofile as it breaks the build on Sparc (autoconf issues).


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16253 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/runtime/Makefile b/runtime/Makefile
index 3ddf2bd..5910b3a 100644
--- a/runtime/Makefile
+++ b/runtime/Makefile
@@ -21,6 +21,12 @@
 	@echo '********' Warning: and re-run configure if it does not.
 endif
 
+# Disable libprofile: a faulty libtool is generated by autoconf which breaks the
+# build on Sparc
+ifeq ($(ARCH), Sparc)
+PARALLEL_DIRS := $(filter-out libprofile, $(PARALLEL_DIRS))
+endif
+
 include $(LEVEL)/Makefile.common
 
 # Install target for libraries: Copy into $LLVMGCCDIR/bytecode-libs