summaryrefslogtreecommitdiff
path: root/Makefile.rules
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-10-24 02:21:45 +0000
committerChris Lattner <sabre@nondot.org>2005-10-24 02:21:45 +0000
commit89938080a6315f2a44d0f614933af9a7964817f4 (patch)
treea3ef28aed31a725c93a174b6a61a79319f5dc819 /Makefile.rules
parentaa9b596c5d9cc6091a4a5f97e70e393125286647 (diff)
downloadllvm-89938080a6315f2a44d0f614933af9a7964817f4.tar.gz
llvm-89938080a6315f2a44d0f614933af9a7964817f4.tar.bz2
llvm-89938080a6315f2a44d0f614933af9a7964817f4.tar.xz
Now that all libraries are built in either .o or .a form, make BUILD_ARCHIVE
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
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules12
1 files changed, 10 insertions, 2 deletions
diff --git a/Makefile.rules b/Makefile.rules
index 9754ec01a9..9e88f7447a 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -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)