From 126b1b868309659e124f7706bc8161943cfc0290 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 30 Apr 2007 00:00:10 +0000 Subject: [PATCH] Dependent libraries could be native too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36582 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Linker/LinkItems.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/Linker/LinkItems.cpp b/lib/Linker/LinkItems.cpp index 09af56c6a8b..87de4af89ae 100644 --- a/lib/Linker/LinkItems.cpp +++ b/lib/Linker/LinkItems.cpp @@ -54,9 +54,12 @@ Linker::LinkInItems(const ItemList& Items, ItemList& NativeItems) { // symbols. bool is_native; for (Module::lib_iterator I = Composite->lib_begin(), - E = Composite->lib_end(); I != E; ++I) + E = Composite->lib_end(); I != E; ++I) { if(LinkInLibrary(*I, is_native)) return true; + if (is_native) + NativeItems.push_back(std::make_pair(*I, true)); + } return false; }