diff options
author | Edwin Török <edwintorok@gmail.com> | 2009-05-26 19:11:47 +0000 |
---|---|---|
committer | Edwin Török <edwintorok@gmail.com> | 2009-05-26 19:11:47 +0000 |
commit | e59edce5a2deb1b6c69ca3df07621ace4e34399d (patch) | |
tree | ce5af1fa20e1fd5ddffda9c0642a2e3455a02e85 /Makefile.rules | |
parent | 02d392b4b8dbbc83fb98fba9b6116289ca70f4e8 (diff) | |
download | external_llvm-e59edce5a2deb1b6c69ca3df07621ace4e34399d.zip external_llvm-e59edce5a2deb1b6c69ca3df07621ace4e34399d.tar.gz external_llvm-e59edce5a2deb1b6c69ca3df07621ace4e34399d.tar.bz2 |
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
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules index 23ffe3e..caa3335 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -948,7 +948,7 @@ $(LibName.SO): $(ObjectsO) $(ProjLibsPaths) $(LLVMLibsPaths) $(LibDir)/.dir $(Echo) Linking $(BuildMode) $(SharedLibKindMessage) \ $(LIBRARYNAME)$(SHLIBEXT) $(Verb) $(Link) $(SharedLinkOptions) -o $@ $(ObjectsO) \ - $(ProjLibsOptions) $(LLVMLibsOptions) + $(ProjLibsOptions) $(LLVMLibsOptions) $(LIBS) else $(LibName.SO): $(ObjectsO) $(LibDir)/.dir $(Echo) Linking $(BuildMode) Shared Library $(LIBRARYNAME)$(SHLIBEXT) |