llvm-build: Adopt generation of LLVM_LIBS_TO_EXPORT. Patch by
authorDan Liew <dan@su-root.co.uk>
Fri, 21 Aug 2015 18:10:55 +0000 (18:10 +0000)
committerDan Liew <dan@su-root.co.uk>
Fri, 21 Aug 2015 18:10:55 +0000 (18:10 +0000)
commitfe112c27a20bfb6e5271cb43f89bebb9628ebcaf
treec291fcc22029cf1b49e6d691577a55ac113d990b
parent71481ee8c0398918298a744904dc98d61859ef5b
llvm-build: Adopt generation of LLVM_LIBS_TO_EXPORT. Patch by
Brad King.

Move `LLVM_LIBS_TO_EXPORT` over to Makefile.llvmbuild and generate it
from `llvm-build` using the same logic used to export the dependencies
of these libraries.  This avoids depending on `llvm-config`.

This refactoring was originally motivated by issue #24154 due to commit
r243297 (Fix `llvm-config` to emit the linker flag for the combined
shared object, 2015-07-27) changing the output of `llvm-config --libs`
to not have the individual libraries when we configure with
`--enable-shared`.  That change was reverted by r244108 but this
refactoring makes sense on its own anyway.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245717 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/modules/Makefile
utils/llvm-build/llvmbuild/main.py