On 7 July 2016 at 13:48, ayush goel <ayushgoel1...@gmail.com> wrote: > In order to show the setup works, I’ve replaced libiberty’s version by > obstack by gnulib’s. This was made possible by replacing the corresponding > header file and then including gnulib headers and gnulib static library in > the build path required to compile gcc files.
Hi Ayush, I'm not an expert on the build machinery, so this question might be misguided: How do you know it is using the version in gnulib rather than the one in libiberty? I see it uses gnulib's header file but: # Dependencies on the intl and portability libraries. LIBDEPS= libcommon.a $(CPPLIB) $(LIBIBERTY) $(LIBINTL_DEP) $(LIBICONV_DEP) \ - $(LIBDECNUMBER) $(LIBBACKTRACE) + $(LIBDECNUMBER) $(LIBBACKTRACE) $(LIBGNU) makes me think that the code in libiberty is found before the one in libgnu. Cheers, Manuel.