| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # Copyright 2010 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 Import('env') | 6 Import('env') |
| 7 env.Append(CCFLAGS=['-Wno-long-long']) | 7 env.Append(CCFLAGS=['-Wno-long-long']) |
| 8 if not env.Bit('bitcode'): |
| 9 env.Append(CCFLAGS=['-mtls-use-call']) |
| 8 | 10 |
| 9 platform_inputs = [ | 11 platform_inputs = [ |
| 10 'nacl_check.c', | 12 'nacl_check.c', |
| 11 'nacl_log.c', | 13 'nacl_log.c', |
| 12 'linux/condition_variable.cc', | 14 'linux/condition_variable.cc', |
| 13 'linux/lock.cc', | 15 'linux/lock.cc', |
| 14 'linux/nacl_exit.c', | 16 'linux/nacl_exit.c', |
| 15 'linux/nacl_threads.c', | 17 'linux/nacl_threads.c', |
| 16 'linux/nacl_timestamp.c', | 18 'linux/nacl_timestamp.c', |
| 17 'linux/time_linux.cc', | 19 'linux/time_linux.cc', |
| 18 'nacl_sync.cc', | 20 'nacl_sync.cc', |
| 19 'time.cc', | 21 'time.cc', |
| 20 ] | 22 ] |
| 21 | 23 |
| 22 env.ComponentLibrary('platform', platform_inputs) | 24 env.ComponentLibrary('platform', platform_inputs) |
| 23 | 25 |
| 24 headers = [ | 26 headers = [ |
| 25 'nacl_check.h', | 27 'nacl_check.h', |
| 26 'nacl_log.h', | 28 'nacl_log.h', |
| 27 'nacl_threads.h', | 29 'nacl_threads.h', |
| 28 ] | 30 ] |
| 29 | 31 |
| 30 header_install = env.AddHeaderToSdk(headers) | 32 header_install = env.AddHeaderToSdk(headers) |
| 31 env.AddLibraryToSdk(['platform']) | 33 env.AddLibraryToSdk(['platform']) |
| 32 | 34 |
| 33 env.Requires('platform', header_install) | 35 env.Requires('platform', header_install) |
| OLD | NEW |