diff options
author | Dan Willemsen <dwillemsen@google.com> | 2016-05-16 15:56:53 -0700 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2016-05-16 15:56:53 -0700 |
commit | e7932e890b4b2fe4c11405c33d7efe82057d446a (patch) | |
tree | 2d53b7707478002d2ee831de67277948878e6a0c /cc/androidmk.go | |
parent | 73d21f25cb55f17325b97650ebec9293c41bc3e7 (diff) | |
download | build_soong-e7932e890b4b2fe4c11405c33d7efe82057d446a.tar.gz build_soong-e7932e890b4b2fe4c11405c33d7efe82057d446a.tar.bz2 build_soong-e7932e890b4b2fe4c11405c33d7efe82057d446a.zip |
Properly export toolchain static libs
Change-Id: I7fd5308469aee5a43d576d1a72f7738dc6f9fbaa
Diffstat (limited to 'cc/androidmk.go')
-rw-r--r-- | cc/androidmk.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/cc/androidmk.go b/cc/androidmk.go index 7ae960a7..3467e690 100644 --- a/cc/androidmk.go +++ b/cc/androidmk.go @@ -115,6 +115,18 @@ func (test *testLinker) AndroidMk(ret *common.AndroidMkData) { } } +func (library *toolchainLibraryLinker) AndroidMk(ret *common.AndroidMkData) { + library.baseLinker.AndroidMk(ret) + + ret.Extra = append(ret.Extra, func(w io.Writer, outputFile common.Path) error { + fmt.Fprintln(w, "LOCAL_MODULE_SUFFIX := "+outputFile.Ext()) + fmt.Fprintln(w, "LOCAL_CXX_STL := none") + fmt.Fprintln(w, "LOCAL_SYSTEM_SHARED_LIBRARIES :=") + + return nil + }) +} + func (installer *baseInstaller) AndroidMk(ret *common.AndroidMkData) { ret.Extra = append(ret.Extra, func(w io.Writer, outputFile common.Path) error { path := installer.path.RelPathString() |