For the new ar --plugin libLLVMgold.so to work we need libLTO linked with
authorTorok Edwin <edwintorok@gmail.com>
Tue, 26 May 2009 19:11:47 +0000 (19:11 +0000)
committerTorok Edwin <edwintorok@gmail.com>
Tue, 26 May 2009 19:11:47 +0000 (19:11 +0000)
commit2efc73d5d016fff926345fda4d9e65df37c85187
treece5af1fa20e1fd5ddffda9c0642a2e3455a02e85
parent493a3d015cbb2bcc18d9293a4dec3b35c7493818
For the new ar --plugin libLLVMgold.so to work we need libLTO linked with
pthreads, otherwise ar complains of unresolved references to pthread_mutex_*.
LTO doesn't actually use pthreads, but ManagedStatic does.

Fix this by linking in LIBS (that contains pthreads) for LTO and gold.
For now this links in more libs than needed (libffi for example), we can figure
out later how to link in those libs per-tool later.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72430 91177308-0d34-0410-b5e6-96231b3b80d8
Makefile.rules