libc/uClibc: 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, don't patch custom dir location]
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Message-Id: <712995e3e719fbbe24af.1349931201@localhost.localdomain>
PatchWork-Id: 190794
2 http://landley.net/hg/aboriginal/file/7e0747a665ab/sources/patches/gcc-core-libgcceh.patch
4 diff -durN gcc-4.2.2.orig/gcc/mklibgcc.in gcc-4.2.2/gcc/mklibgcc.in
5 --- gcc-4.2.2.orig/gcc/mklibgcc.in 2006-07-04 22:20:01.000000000 +0200
6 +++ gcc-4.2.2/gcc/mklibgcc.in 2011-08-31 16:24:03.674690016 +0200
8 if [ "$LIBUNWIND" ]; then
9 libunwind_a=$dir/libunwind.a
11 + libgcc_eh_a=$dir/libgcc_eh.a
12 if [ "$SHLIB_LINK" ]; then
13 - libgcc_eh_a=$dir/libgcc_eh.a
14 libgcc_s_so=$dir/libgcc_s${SHLIB_EXT}
15 if [ "$LIBUNWIND" ]; then
16 libunwind_so=$dir/libunwind${SHLIB_EXT}
18 echo ' chmod 644' ${ldir}/libgcov.a
19 echo ' $(RANLIB_FOR_TARGET)' ${ldir}/libgcov.a
21 - if [ "$SHLIB_LINK" ]; then
22 - echo ' $(INSTALL_DATA)' ${dir}/libgcc_eh.a ${ldir}/
23 - echo ' chmod 644' ${ldir}/libgcc_eh.a
24 - echo ' $(RANLIB_FOR_TARGET)' ${ldir}/libgcc_eh.a
25 + echo ' $(INSTALL_DATA)' ${dir}/libgcc_eh.a ${ldir}/
26 + echo ' chmod 644' ${ldir}/libgcc_eh.a
27 + echo ' $(RANLIB_FOR_TARGET)' ${ldir}/libgcc_eh.a
29 + if [ "$SHLIB_LINK" ]; then
31 os_multilib_dir=`$GCC_FOR_TARGET $flags --print-multi-os-directory`
32 if [ "$os_multilib_dir" != . ]; then