Remove "localize global" optimization
[oota-llvm.git] / runtime / Makefile
index 9937c11e3bc3b0905c948c8efb329009822f3fe7..6a6c6610a7833eac717f494d2a5bcd38b0ff2c9d 100644 (file)
 LEVEL = ..
 include $(LEVEL)/Makefile.config
 
-ifneq ($(wildcard $(LLVMGCC)),)
+ifndef NO_RUNTIME_LIBS
+
 PARALLEL_DIRS  := libprofile
-else
-PARALLEL_DIRS  := 
-install all ::
-       @echo '********' Warning: Your LLVMGCCDIR is set incorrectly.  Check 
-       @echo '********' Warning: llvm/Makefile.config to make sure it matches
-       @echo '********' Warning: the directory where the C front-end is
-       @echo '********' Warning: installed,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)
+ifeq ($(TARGET_OS), $(filter $(TARGET_OS), Cygwin MingW Minix))
 PARALLEL_DIRS := $(filter-out libprofile, $(PARALLEL_DIRS))
 endif
 
+endif
+
 include $(LEVEL)/Makefile.common
 
-# Install target for libraries: Copy into $LLVMGCCDIR/bytecode-libs
-#
 install::
-