| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright (c) 2011 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 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 # nacl-gsl-1.9.sh | 7 # nacl-gsl-1.9.sh |
| 8 # | 8 # |
| 9 # usage: nacl-gsl-1.9.sh | 9 # usage: nacl-gsl-1.9.sh |
| 10 # | 10 # |
| 11 # this script downloads, patches, and builds gsl for Native Client | 11 # this script downloads, patches, and builds gsl for Native Client |
| 12 # | 12 # |
| 13 | 13 |
| 14 source pkg_info | |
| 15 | 14 |
| 16 export LIBS="-lm" | 15 export LIBS="-lm" |
| 17 | 16 |
| 18 source ../../build_tools/common.sh | |
| 19 | 17 |
| 20 # TODO: Remove when this is fixed. | 18 # TODO: Remove when this is fixed. |
| 21 # https://code.google.com/p/nativeclient/issues/detail?id=3598 | 19 # https://code.google.com/p/nativeclient/issues/detail?id=3598 |
| 22 if [ "$NACL_GLIBC" = "1" ]; then | 20 if [ "$NACL_GLIBC" = "1" ]; then |
| 23 export NACLPORTS_CFLAGS="${NACLPORTS_CFLAGS//-O2/}" | 21 export NACLPORTS_CFLAGS="${NACLPORTS_CFLAGS//-O2/}" |
| 24 fi | 22 fi |
| 25 | 23 |
| 26 # TODO: Remove when this is fixed. | 24 # TODO: Remove when this is fixed. |
| 27 # https://code.google.com/p/nativeclient/issues/detail?id=3205 | 25 # https://code.google.com/p/nativeclient/issues/detail?id=3205 |
| 28 if [ "$NACL_ARCH" = "arm" ]; then | 26 if [ "$NACL_ARCH" = "arm" ]; then |
| 29 export NACLPORTS_CFLAGS="${NACLPORTS_CFLAGS//-O2/}" | 27 export NACLPORTS_CFLAGS="${NACLPORTS_CFLAGS//-O2/}" |
| 30 fi | 28 fi |
| 31 | |
| 32 DefaultPackageInstall | |
| 33 exit 0 | |
| OLD | NEW |