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

Side by Side Diff: src/shared/srpc/nacl.scons

Issue 6839002: Pass -mtls-use-call when building libraries used in IRT. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Deconditionalize irt_tls.c Created 9 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # -*- python -*- 1 # -*- python -*-
2 # Copyright 2008 The Native Client Authors. All rights reserved. 2 # Copyright (c) 2011 The Native Client Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can 3 # Use of this source code is governed by a BSD-style license that can be
4 # be found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 6
7 Import('env') 7 Import('env')
8 8
9 # TODO(robertm): get rid of this if possible 9 # TODO(robertm): get rid of this if possible
10 env.Append(CCFLAGS=['-fno-strict-aliasing']) 10 env.Append(CCFLAGS=['-fno-strict-aliasing'])
11 if not env.Bit('bitcode'):
12 env.Append(CCFLAGS=['-mtls-use-call'])
11 13
12 14
13 # NOTE: keep this sync'ed with build.scons 15 # NOTE: keep this sync'ed with build.scons
14 trusted_untrusted_shared = [ 16 trusted_untrusted_shared = [
15 'invoke.c', 17 'invoke.c',
16 'module_init_fini.c', 18 'module_init_fini.c',
17 'nacl_srpc.c', 19 'nacl_srpc.c',
18 'nacl_srpc_message.c', 20 'nacl_srpc_message.c',
19 'rpc_serialize.c', 21 'rpc_serialize.c',
20 'rpc_service.c', 22 'rpc_service.c',
21 'rpc_server_loop.c', 23 'rpc_server_loop.c',
22 'utility.c', 24 'utility.c',
23 ] 25 ]
24 26
25 # NOTE: these files maybe candidates for a separate library 27 # NOTE: these files maybe candidates for a separate library
26 untrusted_only = [ 28 untrusted_only = [
27 'accept.c', 29 'accept.c',
28 'accept_threaded.c'] 30 'accept_threaded.c']
29 31
30 env.ComponentLibrary('libsrpc', 32 env.ComponentLibrary('libsrpc',
31 trusted_untrusted_shared + untrusted_only) 33 trusted_untrusted_shared + untrusted_only)
32 34
33 35
34 env.AddLibraryToSdk(['libsrpc']) 36 env.AddLibraryToSdk(['libsrpc'])
35 header_install = env.AddHeaderToSdk(['nacl_srpc.h']) 37 header_install = env.AddHeaderToSdk(['nacl_srpc.h'])
36 env.Requires('libsrpc', header_install) 38 env.Requires('libsrpc', header_install)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698