Change llvm-config --ldflags to report ${CMAKE_CXX_LINK_FLAGS}
authorReid Kleckner <reid@kleckner.net>
Fri, 25 Apr 2014 01:44:20 +0000 (01:44 +0000)
committerReid Kleckner <reid@kleckner.net>
Fri, 25 Apr 2014 01:44:20 +0000 (01:44 +0000)
commitb33022e1da567d52163b1b621f5746d10814232c
tree7379ba20f1b71df5d308a4a7f8a0797c80b2392c
parent6715d6ec2eeaebd160bdc598c52ffa95c51a82ac
Change llvm-config --ldflags to report ${CMAKE_CXX_LINK_FLAGS}

Should fix PR19526.

When Oscar added this code in the intial CMake build system port, he had
a TODO saying that ${CMAKE_SHARED_LINKER_FLAGS} was probably wrong.  I
agree.  I'm using ${CMAKE_CXX_LINK_FLAGS} to point LLVM at my custom
installation of gcc 4.recent, so that seems more correct.  With this
change, I can build creduce against an installed clang, and it picks up
the write flags from --ldflags.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207171 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-config/CMakeLists.txt