llvm-config: do not link absolute paths with `-l`
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 3 Dec 2019 16:52:21 +0000 (08:52 -0800)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 3 Dec 2019 16:54:09 +0000 (08:54 -0800)
commit372ad32734ecb455f9fb4d0601229ca2dfc78b66
tree697f87b52b7cca07a9f6334f65902030a9d81257
parentc9c714c7054d555398c767cb39d7d97600b3d9d1
llvm-config: do not link absolute paths with `-l`

When dealing with system libraries which are absolute paths, use the
absolute path rather than the `-l` option.  This ensures that the system
library can be properly linked against.  This is needed to enable using
proper link dependencies in CMake.
llvm/tools/llvm-config/CMakeLists.txt