diff options
author | Joel Brobecker <brobecker@adacore.com> | 2015-11-06 21:37:49 +0000 |
---|---|---|
committer | Joel Brobecker <brobecke@gcc.gnu.org> | 2015-11-06 21:37:49 +0000 |
commit | 41fdbd5440670eba362bfe7897d66fcd9aa01cb2 (patch) | |
tree | 87f6ebd7720d3b31abfe3c7134571641ebf1b831 /libiberty | |
parent | d9f4ea18ac3bdc770a18d8d513ab62bf45925f40 (diff) | |
download | gcc-41fdbd5440670eba362bfe7897d66fcd9aa01cb2.tar.gz |
Do not use libiberty's getpagesize on Android
libiberty/ChangeLog:
* configure.ac: Set AC_CV_FUNC_GETPAGESIZE to "yes" on
Android hosts.
* configure: Regenerate.
From-SVN: r229893
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 6 | ||||
-rwxr-xr-x | libiberty/configure | 6 | ||||
-rw-r--r-- | libiberty/configure.ac | 6 |
3 files changed, 18 insertions, 0 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index b5ac8363c36..34ff62e8f43 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,9 @@ +2015-11-06 Joel Brobecker <brobecker@adacore.com> + + * configure.ac: Set AC_CV_FUNC_GETPAGESIZE to "yes" on + Android hosts. + * configure: Regenerate. + 2015-10-28 Jason Merrill <jason@redhat.com> * Makefile.in (TAGS): Fix for separate build directory. diff --git a/libiberty/configure b/libiberty/configure index da2df4ec740..a40ae708797 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 868be8e72d1..e21e3aa5809 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. |