| OLD | NEW |
| 1 # -*- python -*- | 1 # -*- python -*- |
| 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 # Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 | 6 |
| 7 Import('env') | 7 Import('env') |
| 8 | 8 |
| 9 # NACL_GC_WRAP_SYSCALL uses ({...}) syntax. | 9 # NACL_GC_WRAP_SYSCALL uses ({...}) syntax. |
| 10 env.FilterOut(CCFLAGS=['-pedantic']) | 10 env.FilterOut(CCFLAGS=['-pedantic']) |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 'fchdir.c', | 36 'fchdir.c', |
| 37 'fchmod.c', | 37 'fchmod.c', |
| 38 'fdatasync.c', | 38 'fdatasync.c', |
| 39 'fstat.c', | 39 'fstat.c', |
| 40 'fsync.c', | 40 'fsync.c', |
| 41 'ftruncate.c', | 41 'ftruncate.c', |
| 42 'getcwd.c', | 42 'getcwd.c', |
| 43 'getdents.c', | 43 'getdents.c', |
| 44 'getpagesize.c', | 44 'getpagesize.c', |
| 45 'getpid.c', | 45 'getpid.c', |
| 46 'getppid.c', |
| 47 'getsid.c', |
| 46 'gettimeofday.c', | 48 'gettimeofday.c', |
| 49 'kill.c', |
| 47 'link.c', | 50 'link.c', |
| 48 'lock.c', | 51 'lock.c', |
| 49 'lseek.c', | 52 'lseek.c', |
| 50 'lstat.c', | 53 'lstat.c', |
| 51 'mkdir.c', | 54 'mkdir.c', |
| 52 'mmap.c', | 55 'mmap.c', |
| 53 'mprotect.c', | 56 'mprotect.c', |
| 54 'munmap.c', | 57 'munmap.c', |
| 55 'nanosleep.c', | 58 'nanosleep.c', |
| 56 'nacl_interface_query.c', | 59 'nacl_interface_query.c', |
| 57 'nacl_irt_fdio.c', | 60 'nacl_irt_fdio.c', |
| 58 'nacl_irt_filename.c', | 61 'nacl_irt_filename.c', |
| 59 'open.c', | 62 'open.c', |
| 63 'pipe.c', |
| 64 'posix_spawn.c', |
| 60 'read.c', | 65 'read.c', |
| 61 'readlink.c', | 66 'readlink.c', |
| 62 'rename.c', | 67 'rename.c', |
| 63 'rmdir.c', | 68 'rmdir.c', |
| 64 'sbrk.c', | 69 'sbrk.c', |
| 65 'sched_yield.c', | 70 'sched_yield.c', |
| 71 'setpgid.c', |
| 72 'setsid.c', |
| 73 'signal.c', |
| 74 'sigprocmask.c', |
| 66 'stat.c', | 75 'stat.c', |
| 67 'symlink.c', | 76 'symlink.c', |
| 68 'sysconf.c', | 77 'sysconf.c', |
| 69 'truncate.c', | 78 'truncate.c', |
| 70 'unlink.c', | 79 'unlink.c', |
| 71 'utimes.c', | 80 'utimes.c', |
| 81 'wait.c', |
| 82 'waitpid.c', |
| 72 'write.c', | 83 'write.c', |
| 73 ] | 84 ] |
| 74 | 85 |
| 75 SRCS_NEWLIB_STUBS = [ | 86 SRCS_NEWLIB_STUBS = [ |
| 76 'stubs/chown.c', | 87 'stubs/chown.c', |
| 77 'stubs/endpwent.c', | 88 'stubs/endpwent.c', |
| 78 'stubs/environ.c', | 89 'stubs/environ.c', |
| 79 'stubs/_execve.c', | 90 'stubs/_execve.c', |
| 80 'stubs/fchown.c', | 91 'stubs/fchown.c', |
| 81 'stubs/fcntl.c', | 92 'stubs/fcntl.c', |
| 82 'stubs/fork.c', | 93 'stubs/fork.c', |
| 83 'stubs/get_current_dir_name.c', | 94 'stubs/get_current_dir_name.c', |
| 84 'stubs/getegid.c', | 95 'stubs/getegid.c', |
| 85 'stubs/geteuid.c', | 96 'stubs/geteuid.c', |
| 86 'stubs/getgid.c', | 97 'stubs/getgid.c', |
| 87 'stubs/getlogin.c', | 98 'stubs/getlogin.c', |
| 88 'stubs/getrusage.c', | 99 'stubs/getrusage.c', |
| 89 'stubs/getppid.c', | |
| 90 'stubs/getpwent.c', | 100 'stubs/getpwent.c', |
| 91 'stubs/getpwnam.c', | 101 'stubs/getpwnam.c', |
| 92 'stubs/getpwnam_r.c', | 102 'stubs/getpwnam_r.c', |
| 93 'stubs/getpwuid.c', | 103 'stubs/getpwuid.c', |
| 94 'stubs/getpwuid_r.c', | 104 'stubs/getpwuid_r.c', |
| 95 'stubs/getuid.c', | 105 'stubs/getuid.c', |
| 96 'stubs/getwd.c', | 106 'stubs/getwd.c', |
| 97 'stubs/ioctl.c', | 107 'stubs/ioctl.c', |
| 98 'stubs/issetugid.c', | 108 'stubs/issetugid.c', |
| 99 'stubs/kill.c', | |
| 100 'stubs/lchown.c', | 109 'stubs/lchown.c', |
| 101 'stubs/llseek.c', | 110 'stubs/llseek.c', |
| 102 'stubs/pipe.c', | |
| 103 'stubs/pselect.c', | 111 'stubs/pselect.c', |
| 104 'stubs/select.c', | 112 'stubs/select.c', |
| 105 'stubs/setegid.c', | 113 'stubs/setegid.c', |
| 106 'stubs/seteuid.c', | 114 'stubs/seteuid.c', |
| 107 'stubs/setgid.c', | 115 'stubs/setgid.c', |
| 108 'stubs/setpwent.c', | 116 'stubs/setpwent.c', |
| 109 'stubs/settimeofday.c', | 117 'stubs/settimeofday.c', |
| 110 'stubs/setuid.c', | 118 'stubs/setuid.c', |
| 111 'stubs/signal.c', | |
| 112 'stubs/sigprocmask.c', | |
| 113 'stubs/times.c', | 119 'stubs/times.c', |
| 114 'stubs/ttyname.c', | 120 'stubs/ttyname.c', |
| 115 'stubs/ttyname_r.c', | 121 'stubs/ttyname_r.c', |
| 116 'stubs/umask.c', | 122 'stubs/umask.c', |
| 117 'stubs/utime.c', | 123 'stubs/utime.c', |
| 118 'stubs/vfork.c', | 124 'stubs/vfork.c', |
| 119 'stubs/wait.c', | |
| 120 'stubs/waitpid.c', | |
| 121 ] | 125 ] |
| 122 | 126 |
| 123 SRCS_NEWLIB_MISC = [ | 127 SRCS_NEWLIB_MISC = [ |
| 124 'malloc.c', # malloc wrapper | 128 'malloc.c', # malloc wrapper |
| 125 'stacktrace.c', # stack tracing for use with "-finstrument" | 129 'stacktrace.c', # stack tracing for use with "-finstrument" |
| 126 'start.c', # contains _start, preventing us from making this a .so | 130 'start.c', # contains _start, preventing us from making this a .so |
| 127 'nacl_add_tp.c', | 131 'nacl_add_tp.c', |
| 128 'nacl_read_tp.c', | 132 'nacl_read_tp.c', |
| 129 'pthread_initialize_minimal.c', | 133 'pthread_initialize_minimal.c', |
| 130 'pthread_stubs.c', # weak version of __pthread_initialize | 134 'pthread_stubs.c', # weak version of __pthread_initialize |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 # the libnacl_sys_private one. Putting everything important into a | 216 # the libnacl_sys_private one. Putting everything important into a |
| 213 # single .o file avoids this scenario. | 217 # single .o file avoids this scenario. |
| 214 private_combine = [env.ComponentObject(module, '%s.c' % module) | 218 private_combine = [env.ComponentObject(module, '%s.c' % module) |
| 215 for module in ['gc_hooks_private', | 219 for module in ['gc_hooks_private', |
| 216 'sys_private']] | 220 'sys_private']] |
| 217 sys_private.append(env.Command('combined_private${OBJSUFFIX}', | 221 sys_private.append(env.Command('combined_private${OBJSUFFIX}', |
| 218 private_combine, | 222 private_combine, |
| 219 '${LD} -relocatable -o ${TARGET} ${SOURCES}')) | 223 '${LD} -relocatable -o ${TARGET} ${SOURCES}')) |
| 220 | 224 |
| 221 env.ComponentLibrary('libnacl_sys_private', sys_private) | 225 env.ComponentLibrary('libnacl_sys_private', sys_private) |
| OLD | NEW |