OLD | NEW |
1 # Copyright (c) 2014 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2014 The Native Client Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 EXECUTABLES="libgit2_clar" | 5 EXECUTABLES="libgit2_clar" |
6 | 6 |
| 7 # Workaround for arm-gcc bug: |
| 8 # https://code.google.com/p/nativeclient/issues/detail?id=3205 |
| 9 # TODO(sbc): remove this once the issue is fixed |
| 10 if [ "${NACL_ARCH}" = "arm" ]; then |
| 11 NACLPORTS_CPPFLAGS+=" -mfpu=vfp" |
| 12 fi |
| 13 |
7 if [ "${NACL_SHARED}" != "1" ]; then | 14 if [ "${NACL_SHARED}" != "1" ]; then |
8 EXTRA_CMAKE_ARGS="-DBUILD_SHARED_LIBS=OFF" | 15 EXTRA_CMAKE_ARGS="-DBUILD_SHARED_LIBS=OFF" |
9 fi | 16 fi |
10 | 17 |
11 if [ "${NACL_LIBC}" = "newlib" ]; then | 18 if [ "${NACL_LIBC}" = "newlib" ]; then |
12 NACLPORTS_CPPFLAGS="-I${NACLPORTS_INCLUDE}/glibc-compat" | 19 NACLPORTS_CPPFLAGS+=" -I${NACLPORTS_INCLUDE}/glibc-compat" |
13 # newlib headers generate a lot of char-subscript warnings | 20 # newlib headers generate a lot of char-subscript warnings |
14 # for macros such as tolower() | 21 # for macros such as tolower() |
15 NACLPORTS_CPPFLAGS+=" -Wno-char-subscripts" | 22 NACLPORTS_CPPFLAGS+=" -Wno-char-subscripts"S |
16 if [ "$NACL_ARCH" != "arm" ]; then | 23 if [ "$NACL_ARCH" != "arm" ]; then |
17 # Our x86 version of gcc generates a lot of strict aliasing | 24 # Our x86 version of gcc generates a lot of strict aliasing |
18 # warnings. | 25 # warnings. |
19 NACLPORTS_CPPFLAGS+=" -fno-strict-aliasing" | 26 NACLPORTS_CPPFLAGS+=" -fno-strict-aliasing" |
20 fi | 27 fi |
21 fi | 28 fi |
OLD | NEW |