libc/newlib: Add CUSTOM version and CUSTOM_LOCATION config options and GetCustom
CUSTOM_LOCATION config options only presented in menuconfig if component
CUSTOM version selected.
Signed-off-by: "David Holsgrove" <david.holsgrove@xilinx.com>
[yann.morin.1998@free.fr: fix indentation]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <d02252752d4dc5e68ae3.1349931202@localhost.localdomain>
PatchWork-Id: 190795
1 Original patch from gentoo: gentoo/src/patchsets/gcc/4.3.1/gentoo/54_all_300-libstdc++-pic.patch
2 install libstdc++_pic.a if we have pic objs
4 diff -durN gcc-4.3.1.orig/libstdc++-v3/src/Makefile.am gcc-4.3.1/libstdc++-v3/src/Makefile.am
5 --- gcc-4.3.1.orig/libstdc++-v3/src/Makefile.am 2008-02-29 19:26:50.000000000 +0100
6 +++ gcc-4.3.1/libstdc++-v3/src/Makefile.am 2008-06-10 14:58:09.000000000 +0200
8 $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@
12 + pic_objs=`sed -n "s:'::g;s:^pic_object=::p" *.lo | grep -v '^none$$'`; \
13 + if [ x"$$pic_objs" != x ]; then \
14 + $(AR) cru libstdc++_pic.a $$pic_objs $(top_builddir)/libsupc++/*.o || exit 1; \
15 + $(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir) || exit 1; \
18 # Added bits to build debug library.
19 if GLIBCXX_BUILD_DEBUG
20 all-local: build_debug
21 diff -durN gcc-4.3.1.orig/libstdc++-v3/src/Makefile.in gcc-4.3.1/libstdc++-v3/src/Makefile.in
22 --- gcc-4.3.1.orig/libstdc++-v3/src/Makefile.in 2008-02-29 19:26:50.000000000 +0100
23 +++ gcc-4.3.1/libstdc++-v3/src/Makefile.in 2008-06-10 14:58:09.000000000 +0200
26 install-data-am: install-data-local
28 -install-exec-am: install-toolexeclibLTLIBRARIES
29 +install-exec-am: install-toolexeclibLTLIBRARIES install-exec-local
31 install-info: install-info-am
34 maintainer-clean-generic mostlyclean mostlyclean-compile \
35 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
36 tags uninstall uninstall-am uninstall-info-am \
37 - uninstall-toolexeclibLTLIBRARIES
38 + uninstall-toolexeclibLTLIBRARIES install-exec-local
41 # Symbol versioning for shared libraries.
44 (cd ${debugdir} && $(MAKE) \
45 toolexeclibdir=$(glibcxx_toolexeclibdir)/debug install)
48 + pic_objs=`sed -n "s:'::g;s:^pic_object=::p" *.lo | grep -v '^none$$'`; \
49 + if [ x"$$pic_objs" != x ]; then \
50 + $(AR) cru libstdc++_pic.a $$pic_objs $(top_builddir)/libsupc++/*.o || exit 1; \
51 + $(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir) || exit 1; \
54 # Tell versions [3.59,3.63) of GNU make to not export all variables.
55 # Otherwise a system limit (for SysV at least) may be exceeded.