OLD | NEW |
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) |
OLD | NEW |