aboutsummaryrefslogtreecommitdiff
path: root/tools/darwin/depends/config.site_ios.in
blob: a85f0aaae12cb104c5f77fa97990b36545e70602 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
host_alias=arm-apple-darwin10
platform_gcc_version=4.2
platform_sdk_version=@use_sdk@
cross_compiling=yes

platform_min_version="iphoneos-version-min=4.1"
platform_path="/Developer/Platforms/iPhoneOS.platform/Developer"
platform_os_cflags="-arch @use_arch@ -mcpu=cortex-a8 -mfpu=neon -ftree-vectorize -mfloat-abi=softfp -pipe -Wno-trigraphs -fpascal-strings -Os -Wreturn-type -Wunused-variable -fmessage-length=0 -gdwarf-2"
platform_os_ldflags="-arch @use_arch@ -mcpu=cortex-a8"
platform_sdk_path="${platform_path}/SDKs/iPhoneOS${platform_sdk_version}.sdk"

export NM=/usr/bin/nm
export CPP=/usr/bin/cpp-${platform_gcc_version}
export CXXCPP=${CPP}
export CPPFLAGS="-no-cpp-precomp -I${prefix}/include"
export CC=${platform_path}/usr/bin/gcc-${platform_gcc_version}
export CFLAGS="-std=gnu99 -no-cpp-precomp -m${platform_min_version} -isysroot ${platform_sdk_path} ${platform_os_cflags} -I${platform_sdk_path}/usr/include"
export LD=${platform_path}/usr/bin/ld
export LDFLAGS="-m${platform_min_version} -isysroot ${platform_sdk_path} -L${platform_sdk_path}/usr/lib -L${platform_sdk_path}/usr/lib/system ${platform_os_ldflags} -L${prefix}/lib"
export CXX=${platform_path}/usr/bin/g++-${platform_gcc_version}
export CXXFLAGS="-m${platform_min_version} -isysroot ${platform_sdk_path} ${platform_os_cflags}"
export AR=${platform_path}/usr/bin/ar
export AS="@use_toolchain@/bin/gas-preprocessor.pl ${CC}"
export CCAS="--tag CC @use_toolchain@/bin/gas-preprocessor.pl ${CC}"
export STRIP=${platform_path}/usr/bin/strip
export RANLIB=${platform_path}/usr/bin/ranlib
export ACLOCAL="aclocal -I ${prefix}/share/aclocal -I @use_toolchain@/share/aclocal -I /Developer/usr/share/aclocal"
export LIBTOOL=@use_toolchain@/bin/glibtool
export LIBTOOLIZE=@use_toolchain@/bin/glibtoolize
export PKG_CONFIG_PATH=${prefix}/lib/pkgconfig:${platform_sdk_path}/usr/lib/pkgconfig
export PATH="@use_toolchain@/bin:${prefix}/bin:${platform_path}/usr/bin:/Developer/usr/bin:${PATH}"

# tweaks for samba
if test "${PACKAGE_NAME}" = "Samba" ; then
  # disable python support
  export PYTHON_VER=0.0
  # ios/osx-10.6 issue with collision of _MD5 exported from a system lib
  export LDFLAGS="${LDFLAGS} -Wl,-unexported_symbol,_MD5* -lc"
  # uses OPT instead of CFLAGS
  export OPT="${CFLAGS}"
  # various configure overrides
  ac_cv_header_libunwind_h=no
  ac_cv_header_execinfo_h=no
  ac_cv_header_rpcsvc_ypclnt_h=no
  ac_cv_file__proc_sys_kernel_core_pattern=no
  libreplace_cv_HAVE_GETADDRINFO=no
  libreplace_cv_HAVE_C99_VSNPRINTF=yes
  samba_cv_SYSCONF_SC_NPROCESSORS_ONLN=no
  samba_cv_CC_NEGATIVE_ENUM_VALUES=yes
fi

# tweaks for python
if test "${PACKAGE_NAME}" = "python" ; then
  export CC="${CC} -arch armv7"
  export LD="${LD} -arch armv7"
  export CPPFLAGS="${CPPFLAGS} -I${platform_sdk_path}/usr/include"
fi

# tweaks for readline
if test "${PACKAGE_NAME}" = "readline" ; then
  ac_cv_header_termcap_h=no
fi

# tweaks for fontconfig
if test "${ac_unique_file}" = "fonts.dtd" ; then
  with_arch=arm
fi

# tweaks for curl
if test "${PACKAGE_NAME}" = "curl" ; then
  ac_cv_file___dev_urandom_=yes
fi

# tweaks for libmpeg2
if test "${PACKAGE_NAME}" = "libmpeg2" ; then
  export LDFLAGS="${LDFLAGS} -Wl,-read_only_relocs,suppress"
fi

# tweaks for libcdio
if test "${PACKAGE_NAME}" = "libcdio" ; then
  with_cd_drive=no
  with_cd_info=no
  with_cd_read=no
  with_cd_paranoia=no
  with_cdda_player=no
  with_iso_info=no
  with_iso_read=no
fi

# tweaks for libgcrypt
if test "${PACKAGE_NAME}" = "libgcrypt" ; then
  export CFLAGS="${CFLAGS} -fgnu89-inline"
fi