diff options
author | Alexey Neyman <stilor@att.net> | 2016-03-13 15:40:57 -0700 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2016-04-01 18:15:39 -0700 |
commit | 2c7f7cf84784dd86ce03665a7e65de927e03c23e (patch) | |
tree | 49ef261a8c9b0f216fafc7cd72e85036493371af | |
parent | 85af58487290a46e7252504f2af808ad3c99d5d4 (diff) | |
download | crosstool-ng-2c7f7cf84784dd86ce03665a7e65de927e03c23e.tar.gz crosstool-ng-2c7f7cf84784dd86ce03665a7e65de927e03c23e.tar.bz2 crosstool-ng-2c7f7cf84784dd86ce03665a7e65de927e03c23e.zip |
Unbreak *-uclibc with native GDB.
Currently, native GDB 7.11 fails to build with uClibc-ng due to
undefined reference to _obstack_free.
On IRC
[http://crosstool-ng.osuosl.org/download/ibot-logs/2016-02-28.html], it
has been suggested to disable obstack in uClibc configuration. I think
it is a workaround rather than a fix: if another library/app needs
obstack, this leaves no viable configuration. IMO, if uClibc seeks to
mimic the glibc API, it should also provide _obstack_free call (an
alias for which it already has, even though commented out).
Signed-off-by: Alexey Neyman <stilor@att.net>
-rw-r--r-- | patches/uClibc-ng/1.0.12/100-provide-_obstack_free.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/patches/uClibc-ng/1.0.12/100-provide-_obstack_free.patch b/patches/uClibc-ng/1.0.12/100-provide-_obstack_free.patch new file mode 100644 index 00000000..9fd4bc3a --- /dev/null +++ b/patches/uClibc-ng/1.0.12/100-provide-_obstack_free.patch @@ -0,0 +1,12 @@ +diff -ur uClibc-ng-1.0.12.orig/libc/misc/gnu/obstack.c uClibc-ng-1.0.12/libc/misc/gnu/obstack.c +--- uClibc-ng-1.0.12.orig/libc/misc/gnu/obstack.c 2016-03-13 15:08:44.408962824 -0700 ++++ uClibc-ng-1.0.12/libc/misc/gnu/obstack.c 2016-03-13 15:13:30.129322998 -0700 +@@ -385,7 +385,7 @@ + abort (); + } + +-# if 0 ++# if 1 + /* Older versions of libc used a function _obstack_free intended to be + called by non-GCC compilers. */ + strong_alias (obstack_free, _obstack_free) |