commit | 74fbea7f289935b8593035c26311a8aad1b5e949 | [log] [tgz] |
---|---|---|
author | Shih-wei Liao <sliao@google.com> | Sun Jan 16 15:38:59 2011 -0800 |
committer | Shih-wei Liao <sliao@google.com> | Sun Jan 16 15:38:59 2011 -0800 |
tree | 72b44712cec78c7493754a036bf01086bcd2c9e6 | |
parent | 9e27e3b331da916bee6c6c041805e22c3023a83c [diff] [blame] |
Fix bccLinkBC. Change-Id: I67d6f1a0dabfb272416a1f89258252facfbb3c00
diff --git a/lib/bcc/Script.cpp b/lib/bcc/Script.cpp index 89d6115..f539cc0 100644 --- a/lib/bcc/Script.cpp +++ b/lib/bcc/Script.cpp
@@ -234,7 +234,8 @@ } // Link the source module with the library module - if (libraryBC) { + if (librarySize == 1 /* link against file */ || + libraryBC /* link against buffer */) { if (mCompiled->linkBC(NULL, libraryBC, librarySize, 0) != 0) { return 1; }