blob: a62fee098727e226df05904c0318c792f98f0f49 [file] [log] [blame]
# Copyright (c) 2014 The Native Client Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
EXECUTABLES="libgit2_clar"
# Workaround for arm-gcc bug:
# https://code.google.com/p/nativeclient/issues/detail?id=3205
# TODO(sbc): remove this once the issue is fixed
if [ "${NACL_ARCH}" = "arm" ]; then
NACLPORTS_CPPFLAGS+=" -mfpu=vfp"
fi
if [ "${NACL_SHARED}" != "1" ]; then
EXTRA_CMAKE_ARGS="-DBUILD_SHARED_LIBS=OFF"
fi
EnableGlibcCompat
if [ "${NACL_LIBC}" = "newlib" ]; then
# newlib headers generate a lot of char-subscript warnings
# for macros such as tolower()
NACLPORTS_CPPFLAGS+=" -Wno-char-subscripts"
if [ "$NACL_ARCH" != "arm" ]; then
# Our x86 version of gcc generates a lot of strict aliasing
# warnings.
NACLPORTS_CPPFLAGS+=" -fno-strict-aliasing"
fi
fi