diff options
author | Dan Willemsen <dwillemsen@google.com> | 2016-11-18 14:54:24 -0800 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2016-11-28 13:45:24 -0800 |
commit | d2ede879b5027413b288be92bdc4f320124c5d3c (patch) | |
tree | fad2da22ce685b05ff4042ab86941b260e69b801 /cc/library.go | |
parent | 112fd2b9b1ad51d5a7c17a4859fda75592d6ef93 (diff) | |
download | build_soong-d2ede879b5027413b288be92bdc4f320124c5d3c.tar.gz build_soong-d2ede879b5027413b288be92bdc4f320124c5d3c.tar.bz2 build_soong-d2ede879b5027413b288be92bdc4f320124c5d3c.zip |
Add basic VNDK support in Soong
Export a list of libraries in the VNDK, which is currently empty.
Take in Make's global BOARD_VNDK_VERSION, and use that as the SDK
version for modules that specify use_vndk: true.
Modules that use the vndk have some configuration as if they were
building against the NDK (the absence of globally defined headers), but
in other cases look like platform modules (using the platform libc++,
for now).
This change does not attempt to enforce any linking constraints, that
will come in a later patch.
Test: out/soong/build.ninja doesn't change
Change-Id: I3be206b67015ac5177b7eef4a451c579e3dc903f
Diffstat (limited to 'cc/library.go')
-rw-r--r-- | cc/library.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/library.go b/cc/library.go index 35d0089e..7b7ac952 100644 --- a/cc/library.go +++ b/cc/library.go @@ -331,7 +331,7 @@ func (library *libraryDecorator) linkerDeps(ctx BaseModuleContext, deps Deps) De deps.SharedLibs = append(deps.SharedLibs, library.Properties.Static.Shared_libs...) } else { if ctx.toolchain().Bionic() && !Bool(library.baseLinker.Properties.Nocrt) { - if !ctx.sdk() { + if !ctx.sdk() && !ctx.vndk() { deps.CrtBegin = "crtbegin_so" deps.CrtEnd = "crtend_so" } else { |