Fix rdar://7694996 a miscompile of 183.equake from my patch yesterday,
[oota-llvm.git] / runtime / Makefile
index 33386d7b3cf35243859e63dfe522d58c02f98f71..1e1045142583f74d3596d18bd531e2edb6e5ec1b 100644 (file)
@@ -1,2 +1,27 @@
+##===- runtime/Makefile ------------------------------------*- Makefile -*-===##
+# 
+#                     The LLVM Compiler Infrastructure
+#
+# This file is distributed under the University of Illinois Open Source
+# License. See LICENSE.TXT for details.
+# 
+##===----------------------------------------------------------------------===##
 
-all::
+LEVEL = ..
+include $(LEVEL)/Makefile.config
+
+ifndef NO_RUNTIME_LIBS
+
+PARALLEL_DIRS  := libprofile
+
+# 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
+
+endif
+
+include $(LEVEL)/Makefile.common
+
+install::