| OLD | NEW |
| (Empty) |
| 1 #!/bin/bash | |
| 2 # | |
| 3 # Copyright (c) 2011 The Native Client Authors. All rights reserved. | |
| 4 # Use of this source code is governed by a BSD-style license that can be | |
| 5 # found in the LICENSE file. | |
| 6 | |
| 7 # This is wrapper around arm-linux-gnueabi-gcc/g++ so we can easily sneak | |
| 8 # in some extra flags required for building chrome using the nacl | |
| 9 # arm trusted TC. | |
| 10 # This script will be copied into the the arm trusted TC jail | |
| 11 # and changes behavior slightly depending on what name is used to invoke it. | |
| 12 | |
| 13 set -o nounset | |
| 14 set -o errexit | |
| 15 | |
| 16 readonly JAIL=$(dirname $0) | |
| 17 | |
| 18 if [[ $(basename $0) == *c++* ]] ; then | |
| 19 readonly COMPILER=arm-linux-gnueabi-g++-4.5 | |
| 20 else | |
| 21 readonly COMPILER=arm-linux-gnueabi-gcc-4.5 | |
| 22 fi | |
| 23 | |
| 24 # NOTE: the glib-2.0 gdk-pixbuf-2.0 should be inferred via pkg-config | |
| 25 # but something is not quite right yet with jail setup | |
| 26 | |
| 27 ${COMPILER} \ | |
| 28 -isystem ${JAIL}/usr/include \ | |
| 29 -I${JAIL}/usr/lib/arm-linux-gnueabi/glib-2.0/include \ | |
| 30 -I${JAIL}/usr/include/gdk-pixbuf-2.0 \ | |
| 31 -Wl,-rpath-link=${JAIL}/usr/lib/arm-linux-gnueabi \ | |
| 32 -Wl,-rpath-link=${JAIL}/usr/lib \ | |
| 33 -Wl,-rpath-link=${JAIL}/lib/arm-linux-gnueabi \ | |
| 34 -L${JAIL}/lib \ | |
| 35 -L${JAIL}/usr/lib \ | |
| 36 -L${JAIL}/lib/arm-linux-gnueabi \ | |
| 37 -L${JAIL}/usr/lib/arm-linux-gnueabi \ | |
| 38 "$@" | |
| OLD | NEW |