glib: Fix incorrect glib_cv_uscore=yes
[termux-packages] / packages / glib / build.sh
CommitLineData
59f0d218
FF
1TERMUX_PKG_HOMEPAGE=https://developer.gnome.org/glib/
2TERMUX_PKG_DESCRIPTION="Library providing core building blocks for libraries and applications written in C"
bb27a0ec
FF
3_TERMUX_GLIB_MAJOR_VERSION=2.48
4TERMUX_PKG_VERSION=${_TERMUX_GLIB_MAJOR_VERSION}.0
172bfbe2 5TERMUX_PKG_BUILD_REVISION=1
59f0d218
FF
6TERMUX_PKG_SRCURL=http://ftp.gnome.org/pub/gnome/sources/glib/${_TERMUX_GLIB_MAJOR_VERSION}/glib-${TERMUX_PKG_VERSION}.tar.xz
7TERMUX_PKG_DEPENDS="libffi, pcre"
8
9# --enable-compile-warnings=no to get rid of format strings causing errors
10TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-compile-warnings --disable-gtk-doc --disable-gtk-doc-html --cache-file=termux_configure.cache --with-pcre=system"
035e27f9
FF
11# --disable-znodelete to avoid DF_1_NODELETE which most Android 5.0 linkers
12# does not support:
13TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-znodelete"
6fbbe50f 14TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" --disable-libelf"
59f0d218
FF
15TERMUX_PKG_RM_AFTER_INSTALL="share/gtk-doc share/locale share/glib-2.0/gettext share/gdb/auto-load share/glib-2.0/codegen share/glib-2.0/gdb lib/glib-2.0/include bin/gtester-report bin/glib-mkenums bin/glib-gettextize bin/gdbus-codegen"
16
17# glib checks for __BIONIC__ instead of __ANDROID__
18CFLAGS="$CFLAGS -D__BIONIC__=1"
19
20termux_step_pre_configure () {
21 cd $TERMUX_PKG_BUILDDIR
172bfbe2 22 # https://developer.gnome.org/glib/stable/glib-cross-compiling.html
59f0d218
FF
23 echo "glib_cv_long_long_format=ll" >> termux_configure.cache
24 echo "glib_cv_stack_grows=no" >> termux_configure.cache
172bfbe2
FF
25 echo "glib_cv_uscore=no" >> termux_configure.cache
26 #echo "ac_cv_func_posix_getpwuid_r=yes" >> termux_configure.cache
27 #echo "ac_cv_func_posix_getgrgid_r=yes" >> termux_configure.cache
28 #echo "ac_cv_func_posix_getpwnam_r=yes" >> termux_configure.cache
29 #echo "ac_cv_func_posix_getpwuid_r=yes" >> termux_configure.cache
30 #echo "ac_cv_header_pwd_h=no" >> termux_configure.cache
59f0d218
FF
31 chmod a-w termux_configure.cache # prevent configure from changing
32}