[uclibc-ng-devel] [PATCH 1/2] Advertise obstack only when chosen

Anton Kolesov Anton.Kolesov at synopsys.com
Fri Feb 19 16:10:33 CET 2016

This is similar to this patch for GNU glob:

The problem is that libiberty/obstack.c file checks for
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 <Anton.Kolesov at synopsys.com>
Cc: Vineet Gupta <Vineet.Gupta1 at synopsys.com>
Cc: Alexey Brodkin <abrodkin at synopsys.com>
 include/gnu-versions.h | 2 ++
 1 file changed, 2 insertions(+)

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 libc.so 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 */

More information about the devel mailing list