Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3655)

Unified Diff: build/build_nexe.py

Issue 10915109: Add nacl_sdk gyp meta-target. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: . Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/all.gyp ('k') | build/nacl_core_sdk.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/build_nexe.py
diff --git a/build/build_nexe.py b/build/build_nexe.py
index 7d9ac12482923d1a961927034ad0f8dd9d9fa0c8..f754fe788ee1ba9f897f4d17a65cda7fe0879f00 100644
--- a/build/build_nexe.py
+++ b/build/build_nexe.py
@@ -209,6 +209,10 @@ class Builder(object):
options = ArgToList(options)
if self.toolname in ['glibc', 'newlib'] and self.mainarch == 'x86':
options += ['-B' + self.toollib]
+ if self.outtype == 'nso':
+ options += ['-Wl,-rpath-link,' + name for name in self.lib_paths]
+ options += ['-shared']
+ options += ['-Wl,-soname,' + os.path.basename(self.name)]
self.link_options = options + ['-L' + name for name in self.lib_paths]
def BuildArchiveOptions(self):
@@ -355,7 +359,7 @@ class Builder(object):
Link or Archive the final output file, from the compiled sources.
"""
- if self.outtype == 'nexe':
+ if self.outtype in ['nexe', 'nso']:
out = self.Link(srcs)
if self.strip_debug:
self.Strip(out)
« no previous file with comments | « build/all.gyp ('k') | build/nacl_core_sdk.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698