From: brobecke Date: Fri, 6 Nov 2015 21:37:49 +0000 (+0000) Subject: Do not use libiberty's getpagesize on Android X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ed4d1b7a5f4cb2b174b0f3048bc7c930d24a0d7;p=thirdparty%2Fgcc.git Do not use libiberty's getpagesize on Android libiberty/ChangeLog: * configure.ac: Set AC_CV_FUNC_GETPAGESIZE to "yes" on Android hosts. * configure: Regenerate. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229893 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index b5ac8363c360..34ff62e8f436 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,9 @@ +2015-11-06 Joel Brobecker + + * configure.ac: Set AC_CV_FUNC_GETPAGESIZE to "yes" on + Android hosts. + * configure: Regenerate. + 2015-10-28 Jason Merrill * Makefile.in (TAGS): Fix for separate build directory. diff --git a/libiberty/configure b/libiberty/configure index da2df4ec740b..a40ae7087977 100755 --- a/libiberty/configure +++ b/libiberty/configure @@ -6224,6 +6224,12 @@ if test -z "${setobjs}"; then case "${host}" in + *-*-android*) + # On android, getpagesize is defined in unistd.h as a static inline + # function, which AC_CHECK_FUNCS does not handle properly. + ac_cv_func_getpagesize=yes + ;; + *-*-mingw32*) # Under mingw32, sys_nerr and sys_errlist exist, but they are # macros, so the test below won't find them. diff --git a/libiberty/configure.ac b/libiberty/configure.ac index 868be8e72d1a..e21e3aa5809b 100644 --- a/libiberty/configure.ac +++ b/libiberty/configure.ac @@ -600,6 +600,12 @@ if test -z "${setobjs}"; then case "${host}" in + *-*-android*) + # On android, getpagesize is defined in unistd.h as a static inline + # function, which AC_CHECK_FUNCS does not handle properly. + ac_cv_func_getpagesize=yes + ;; + *-*-mingw32*) # Under mingw32, sys_nerr and sys_errlist exist, but they are # macros, so the test below won't find them.