Two changes:
1. Get rid of TOOLLINKOPTS as it is a hold over from llvm-test and only
used to communicate additional libraries to the linker. The *standard*
way to do that is with the LIBS variable which this change supports.
2. Allow the TARGETS_TO_BUILD variable to be set from the configuration
substitution. This is the result of the --enable-target= parameter to
the configure script.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21449 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Makefile.config.in b/Makefile.config.in
index 5e0eda5..074bd05 100644
--- a/Makefile.config.in
+++ b/Makefile.config.in
@@ -100,6 +100,9 @@
# Target triple (cpu-vendor-os) for which we should generate code
TARGET_TRIPLE=@target@
+# Targets that we should build
+TARGETS_TO_BUILD=@TARGETS_TO_BUILD@
+
# Endian-ness of the target
ENDIAN=@ENDIAN@
@@ -113,9 +116,6 @@
# Linker flags.
LDFLAGS+=@LDFLAGS@
-# Libraries needed by tools
-TOOLLINKOPTS=@LIBS@
-
# Path to the library archiver program.
AR_PATH = @AR@
@@ -150,6 +150,8 @@
TCLSH := @TCLSH@
ZIP := @ZIP@
+LIBS := @LIBS@
+
# Path to location for LLVM C/C++ front-end. You can modify this if you
# want to override the value set by configure.
LLVMGCCDIR := @LLVMGCCDIR@