Merge pull request #25820 from hribz/master
[xbmc.git] / tools / depends / target / config.site.in
blob68589b63551618bda97219214babd705af2b5579
1 if test "@cross_compiling@" = "yes"; then
2 cross_compiling=yes
3 host=@use_host@
4 host_alias=@use_host@
5 fi
7 LD="@LD@"
8 CC="@CCACHE@ @CC@"
9 CXX="@CCACHE@ @CXX@"
10 CPP="@CCACHE@ @CPP@"
11 AR="@AR@"
12 AS="@AS@"
13 NM="@NM@"
14 STRIP="@STRIP@"
15 RANLIB="@RANLIB@"
16 OBJDUMP="@OBJDUMP@"
18 if test "@platform_os@" = "darwin_embedded" ; then
19   export AS="@prefix@/@tool_dir@/bin/gas-preprocessor.pl @CCACHE@ @CC@ -arch @use_cpu@"
20   export CCAS="--tag CC @prefix@/@tool_dir@/bin/gas-preprocessor.pl @CCACHE@ @CC@ -arch @use_cpu@"
23 ASFLAGS="@platform_asflags@"
24 CFLAGS="@platform_cflags@ @platform_includes@ -isystem @prefix@/@deps_dir@/include $CFLAGS"
25 LDFLAGS="-L@prefix@/@deps_dir@/lib @platform_ldflags@ $LDFLAGS"
26 CXXFLAGS="@platform_cxxflags@ @platform_includes@ -isystem @prefix@/@deps_dir@/include $CXXFLAGS"
27 CPPFLAGS="@platform_cflags@ @platform_includes@ -isystem @prefix@/@deps_dir@/include $CPPFLAGS"
29 export PKG_CONFIG=@prefix@/@tool_dir@/bin/pkg-config
30 export PKG_CONFIG_LIBDIR=@prefix@/@deps_dir@/lib/pkgconfig
31 export NASM=@prefix@/@tool_dir@/bin/nasm
32 LIBGCRYPT_CONFIG=@prefix@/@deps_dir@/bin/libgcrypt-config
34 PATH=@prefix@/@tool_dir@/bin:@use_toolchain@/usr/bin:@use_toolchain@/bin:$PATH
35 LD_LIBRARY_PATH=@prefix@/@tool_dir@/lib:$LD_LIBRARY_PATH
37 NATIVE_ROOT=@prefix@/@tool_dir@
39 #curl
40 ac_cv_file__dev_urandom=yes
41 ac_cv_lib_ssl_SSL_connect=yes
43 #gettext and libiconv
44 gl_cv_header_working_stdint_h=yes
46 #libcec
47 ac_cv_search_dlopen=-ldl
49 #python
50 ac_cv_func_gethostbyname_r=no
51 ac_cv_header_sys_un_h=yes
52 ac_cv_file__dev_ptmx=no
53 ac_cv_file__dev_ptc=no
55 #gnutls
56 gl_cv_func_gettimeofday_clobber=no
58 #wayland
59 if test "${PACKAGE_NAME}" = "wayland"; then
60   # wayland insists on building tests which rely on assert, which cannot work with -DNDEBUG
61   # Maybe it would be better not to define -DNDEBUG globally for release builds?
62   export CFLAGS=`echo ${CFLAGS} | sed 's/-DNDEBUG=1//g'`
63   export CPPFLAGS=`echo ${CPPFLAGS} | sed 's/-DNDEBUG=1//g'`
67 if test "@platform_os@" = "android"; then
68   ac_cv_func_srand=yes
69   ac_cv_func_rand=yes
72 if test "@platform_os@" = "darwin_embedded"; then
73   # there is no clock_settime on iOS/tvOS as of latest version 13.X
74   ac_cv_func_clock_settime=no
76   # tweaks for flac
77   if test "${ac_unique_file}" = "src/flac/main.c" ; then
78     # compiler barfs if we use -O3/O2 for flac
79     export CFLAGS=`echo ${CFLAGS} | sed 's/-O3/-Os/'`
80     export CPPFLAGS=`echo ${CPPFLAGS} | sed 's/-O3/-Os/'`
81   fi
84 if test "@target_platform@" = "appletvos"; then
85   ac_cv_func_sigaltstack=no
86   ac_cv_func_vfork_works=no
87   ac_cv_func_fork=no
90 #Fix for older, broken android toolchains
91 if test "${PACKAGE_NAME}" = "FreeType" -a "@platform_os@" = "android"; then
92   CFLAGS="$CFLAGS -std=gnu99"
95 # These libs do not correctly export their symbols. Force them in case
96 # -fvisibility=hidden is set.
97 if test "${ac_unique_file}" = "src/flac/main.c" || \
98    test "${ac_unique_file}" = "src/framing.c" || \
99    test "${ac_unique_file}" = "src/libdvdcss.c" || \
100    test "${PACKAGE_NAME}" = "libssh2" ; then
101      CFLAGS="$CFLAGS -fvisibility=default"