Now that all libraries are built in either .o or .a form, make BUILD_ARCHIVE
authorChris Lattner <sabre@nondot.org>
Mon, 24 Oct 2005 02:21:45 +0000 (02:21 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 24 Oct 2005 02:21:45 +0000 (02:21 +0000)
default to turning off building of relinked objects.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23939 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.rules

index 9754ec01a9578fb8b8d2197b8f371cd25ef55f3a..9e88f7447a42d908044734d21d9a79acdb7f57dd 100644 (file)
@@ -824,10 +824,18 @@ endif
 
 #---------------------------------------------------------
 # ReLinked Library Targets:
-#   If the user didn't explicitly forbid building a 
-#   relinked then we provide targets for building them.
+#   If the user explicitly requests a relinked library with
+#   BUILD_RELINKED, provide it.  Otherwise, if they specify
+#   neither of BUILD_ARCHIVE or DONT_BUILD_RELINKED, give
+#   them one.
 #---------------------------------------------------------
+ifndef BUILD_ARCHIVE
 ifndef DONT_BUILD_RELINKED
+BUILD_RELINKED = 1
+endif
+endif
+
+ifdef BUILD_RELINKED
 
 all-local:: $(LibName.O)