diff options
authorAnton Kolesov <>2016-02-19 15:10:33 (GMT)
committerWaldemar Brodkorb <>2016-02-24 21:17:10 (GMT)
commit36656f6dc23f5d0091f7a838b1885793a75e3b2f (patch)
parentf78f0bdec821793fd82734ee6e6c23cd6837e5d9 (diff)
Advertise obstack only when chosen
This is similar to this patch for GNU glob: ff6ce3999db93a52d1cd22510f8508b660ddf54e. The problem is that libiberty/obstack.c file checks for _GNU_OBSTACK_INTERFACE_VERSION == _OBSTACK_INTERFACE_VERSION and elides libiberty obstack implementation if there is already a compatible implementation in libc. Therefore define should be set only when obstack is actually selected, otherwise it is not possible to build binutils and gdb with uClibc. Signed-off-by: Anton Kolesov <> Cc: Vineet Gupta <> Cc: Alexey Brodkin <>
1 files changed, 2 insertions, 0 deletions
diff --git a/include/gnu-versions.h b/include/gnu-versions.h
index 9f53778..6678c9b 100644
--- a/include/gnu-versions.h
+++ b/include/gnu-versions.h
@@ -43,7 +43,9 @@
remember, if any of these versions change, the major version
number must change too (so avoid it)! */
#define _GNU_OBSTACK_INTERFACE_VERSION 1 /* vs malloc/obstack.c */
#define _GNU_REGEX_INTERFACE_VERSION 1 /* vs posix/regex.c */
#define _GNU_GLOB_INTERFACE_VERSION 1 /* vs posix/glob.c */