aboutsummaryrefslogtreecommitdiff
path: root/libiberty/ChangeLog
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@adacore.com>2015-11-06 13:39:19 -0800
committerJoel Brobecker <brobecker@adacore.com>2015-11-06 13:39:58 -0800
commit82ef0f70744ca47057b9e95cd926dbcb25ebb0c8 (patch)
treefd8a8c523c3231d0ca55cb306e322e1680c36a00 /libiberty/ChangeLog
parented60fec722981ecfbd9d1c46b4a2294b228711e9 (diff)
downloadgdb-82ef0f70744ca47057b9e95cd926dbcb25ebb0c8.zip
gdb-82ef0f70744ca47057b9e95cd926dbcb25ebb0c8.tar.gz
gdb-82ef0f70744ca47057b9e95cd926dbcb25ebb0c8.tar.bz2
Do not use libiberty's getpagesize on Android
Building libiberty on Android currently fails with the error message shown below. This was discovered by trying to build GDBserver for Android, which stopped building after libiberty became a GDBserver dependency. Here is the error message: [...]/getpagesize.c:64:1: error: redefinition of 'getpagesize' In file included from /[...]/getpagesize.c:34:0: /[...]/usr/include/unistd.h:171:23: note: previous definition of 'getpagesize' was here And looking at the definition, one can see that it defined as a static inline function... static __inline__ int getpagesize(void) { extern unsigned int __page_size; return __page_size; } ... which explains why the AC_CHECK_FUNCS test failed to detect the function, since there is no associated symbol to be linked in. This patch prevents getpagesize.c to be compiled in by hard-coding the fact that getpagesize is available on android hosts. libiberty/ChangeLog: * configure.ac: Set AC_CV_FUNC_GETPAGESIZE to "yes" on Android hosts. * configure: Regenerate.
Diffstat (limited to 'libiberty/ChangeLog')
-rw-r--r--libiberty/ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 5b9a8cf..0688ba8 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-09-30 Nick Clifton <nickc@redhat.com>
Import the following patches from the GCC mainline: