aboutsummaryrefslogtreecommitdiff
path: root/tools/depends/native/config.site.native.in
blob: deef5955d35d2d8af62f33644ee354e6e0b4337e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
LD="${LD:-@LD_FOR_BUILD@}"
CC="${CC:-@CCACHE@ @CC_FOR_BUILD@}"
CXX="${CXX:-@CCACHE@ @CXX_FOR_BUILD@}"
AR="${AR:-@AR_FOR_BUILD@}"
RANLIB="${RANLIB:-@RANLIB_FOR_BUILD@}"
AS="${AS:-@AS_FOR_BUILD@}"
NM="${NM:-@NM_FOR_BUILD@}"
STRIP="${STRIP:-@STRIP_FOR_BUILD@}"
READELF="${READELF:-@READELF_FOR_BUILD@}"
OBJDUMP="${OBJDUMP:-@OBJDUMP_FOR_BUILD@}"

CFLAGS="@native_platform_min_version@ -I@prefix@/@tool_dir@/include $CFLAGS"
LDFLAGS="@native_platform_min_version@ -L@prefix@/@tool_dir@/lib $LDFLAGS"
CPPFLAGS="@native_platform_min_version@ -I@prefix@/@tool_dir@/include $CPPFLAGS"
CXXFLAGS="@native_platform_min_version@ -I@prefix@/@tool_dir@/include $CXXFLAGS"

PKG_CONFIG=@prefix@/@tool_dir@/bin/pkg-config
export PKG_CONFIG_LIBDIR=@prefix@/@tool_dir@/lib/pkgconfig

PATH=@prefix@/@tool_dir@/bin:$PATH
if test -n "@use_build_toolchain@"; then
  PATH=@use_build_toolchain@/usr/bin:@use_build_toolchain@/bin:$PATH
fi

LD_LIBRARY_PATH=@prefix@/@tool_dir@/lib:$LD_LIBRARY_PATH
NASM=@prefix@/@tool_dir@/bin/yasm

if test "@build_os@" = "osx" ; then
  # Xcode 8 + 10.11, clock_gettime and getentropy is present
  # in 10.12 but will get wrongly detected if building on 10.11
  ac_cv_search_clock_gettime=no
  ac_cv_func_clock_gettime=no
  ac_cv_func_getentropy=no
  ac_cv_func_futimes=no
  ac_cv_func_futimesat=no
  ac_cv_func_futimens=no
  ac_cv_func_utimensat=no
fi