| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 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 #@ PNaCl toolchain build script | 6 #@ PNaCl toolchain build script |
| 7 #@------------------------------------------------------------------- | 7 #@------------------------------------------------------------------- |
| 8 #@ This script builds the ARM and PNaCl untrusted toolchains. | 8 #@ This script builds the ARM and PNaCl untrusted toolchains. |
| 9 #@ It MUST be run from the native_client/ directory. | 9 #@ It MUST be run from the native_client/ directory. |
| 10 ###################################################################### | 10 ###################################################################### |
| (...skipping 2486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2497 mkdir -p ${destdir} | 2497 mkdir -p ${destdir} |
| 2498 # The NaCl headers insist on having a platform macro such as | 2498 # The NaCl headers insist on having a platform macro such as |
| 2499 # NACL_LINUX defined, but nonsfi/irt/irt_interfaces.c does not | 2499 # NACL_LINUX defined, but nonsfi/irt/irt_interfaces.c does not |
| 2500 # itself use any of these macros, so defining NACL_LINUX here even | 2500 # itself use any of these macros, so defining NACL_LINUX here even |
| 2501 # on non-Linux systems is OK. | 2501 # on non-Linux systems is OK. |
| 2502 gcc -m32 -O2 -Wall -Werror -I${NACL_ROOT}/.. -c \ | 2502 gcc -m32 -O2 -Wall -Werror -I${NACL_ROOT}/.. -c \ |
| 2503 -DNACL_LINUX=1 -DDEFINE_MAIN \ | 2503 -DNACL_LINUX=1 -DDEFINE_MAIN \ |
| 2504 ${NACL_ROOT}/src/nonsfi/irt/irt_interfaces.c \ | 2504 ${NACL_ROOT}/src/nonsfi/irt/irt_interfaces.c \ |
| 2505 -o ${destdir}/unsandboxed_irt.o | 2505 -o ${destdir}/unsandboxed_irt.o |
| 2506 gcc -m32 -O2 -Wall -Werror -I${NACL_ROOT}/.. -c \ | 2506 gcc -m32 -O2 -Wall -Werror -I${NACL_ROOT}/.. -c \ |
| 2507 ${NACL_ROOT}/src/nonsfi/irt/irt_random.c \ |
| 2508 -o ${destdir}/irt_random.o |
| 2509 gcc -m32 -O2 -Wall -Werror -I${NACL_ROOT}/.. -c \ |
| 2507 ${NACL_ROOT}/src/untrusted/irt/irt_query_list.c \ | 2510 ${NACL_ROOT}/src/untrusted/irt/irt_query_list.c \ |
| 2508 -o ${destdir}/irt_query_list.o | 2511 -o ${destdir}/irt_query_list.o |
| 2509 fi | 2512 fi |
| 2510 } | 2513 } |
| 2511 | 2514 |
| 2512 | 2515 |
| 2513 # Build the dummy "libpnacl_irt_shim.a", which is useful for building | 2516 # Build the dummy "libpnacl_irt_shim.a", which is useful for building |
| 2514 # commandline programs. It cannot be used to build PPAPI programs | 2517 # commandline programs. It cannot be used to build PPAPI programs |
| 2515 # because it does not actually shim the PPAPI interfaces. | 2518 # because it does not actually shim the PPAPI interfaces. |
| 2516 # The library is named the same as the real PPAPI shim to ensure that | 2519 # The library is named the same as the real PPAPI shim to ensure that |
| (...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3380 | 3383 |
| 3381 if [ "$(type -t $1)" != "function" ]; then | 3384 if [ "$(type -t $1)" != "function" ]; then |
| 3382 #Usage | 3385 #Usage |
| 3383 echo "ERROR: unknown function '$1'." >&2 | 3386 echo "ERROR: unknown function '$1'." >&2 |
| 3384 echo "For help, try:" | 3387 echo "For help, try:" |
| 3385 echo " $0 help" | 3388 echo " $0 help" |
| 3386 exit 1 | 3389 exit 1 |
| 3387 fi | 3390 fi |
| 3388 | 3391 |
| 3389 "$@" | 3392 "$@" |
| OLD | NEW |