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

Unified Diff: SConstruct

Issue 7655003: Make chrome_browser_tests work with irt=0 again (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 9 years, 4 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 | « no previous file | tests/imc_shm_mmap/nacl.scons » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: SConstruct
diff --git a/SConstruct b/SConstruct
index 6949540f8b8b47b818885bb3f93618a26ae27dbd..0e496b9c6c3225031404b19c850206cd5923e234 100755
--- a/SConstruct
+++ b/SConstruct
@@ -2554,24 +2554,19 @@ for variant_bit, variant_suffix in target_variant_map:
if nacl_env.Bit(variant_bit):
nacl_env['TARGET_VARIANT'] += '-' + variant_suffix
-# Since the default linking layout is compatible with IRT loading now,
-# we should not need anything special here.
-# TODO(mcgrathr): Perhaps remove the variable entirely at some point.
-nacl_env.Replace(NON_PPAPI_BROWSER_LIBS=[])
-
if nacl_env.Bit('irt'):
+ # Since the default linking layout is compatible with IRT loading now,
+ # we should not need anything special here.
+ nacl_env.Replace(NON_PPAPI_BROWSER_LIBS=[])
nacl_env.Replace(PPAPI_LIBS=['ppapi'])
- # Even non-PPAPI nexes need this for IRT-compatible linking.
- # We don't just make them link with ${PPAPI_LIBS} because in
- # the non-IRT case under dynamic linking, that tries to link
- # in libppruntime.so with its undefined symbols and fails
- # for nexes that aren't actually PPAPI users.
else:
# TODO(mseaborn): This will go away when we only support using PPAPI
bsy 2011/08/16 22:01:15 i think this comment is out of date. we need this
# via the IRT library, so users of this dependency should not rely
# on individual libraries like 'platform' being included by default.
+ nacl_env.Replace(NON_PPAPI_BROWSER_LIBS=['${NONIRT_LIBS}'])
nacl_env.Replace(PPAPI_LIBS=['ppruntime', 'srpc', 'imc', 'imc_syscalls',
- 'platform', 'gio', 'pthread', 'm'])
+ 'platform', 'gio', '${PTHREAD_LIBS}', 'm',
+ '${NONIRT_LIBS}'])
# TODO(mseaborn): Make nacl-glibc-based static linking work with just
# "-static", without specifying a linker script.
« no previous file with comments | « no previous file | tests/imc_shm_mmap/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698