patches/gcc/4.3.1/170-libiberty-pic.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed Aug 31 16:47:42 2011 +0200 (2011-08-31)
changeset 2672 7cfaaf8204e7
parent 746 b150d6f590fc
permissions -rw-r--r--
cc/gcc: libgcc_eh.a may be required, even from the stage-1 compiler

Building uClibc with libubacktrace requires libgcc_eh.a to be available,
but gcc does not build it unless it is configured to generate shared libs.

However, libgcc_eh.a does not *require* shared libs support, as it is a
static library.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
     1 Original patch from gentoo: gentoo/src/patchsets/gcc/4.3.1/gentoo/51_all_gcc-3.4-libiberty-pic.patch
     2 diff -durN gcc-4.3.1.orig/libiberty/Makefile.in gcc-4.3.1/libiberty/Makefile.in
     3 --- gcc-4.3.1.orig/libiberty/Makefile.in	2007-07-25 08:26:45.000000000 +0200
     4 +++ gcc-4.3.1/libiberty/Makefile.in	2008-06-10 14:58:02.000000000 +0200
     5 @@ -225,6 +225,7 @@
     6  	  $(AR) $(AR_FLAGS) $(TARGETLIB) \
     7  	    $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \
     8  	  $(RANLIB) $(TARGETLIB); \
     9 +	  cp $(TARGETLIB) ../ ; \
    10  	  cd ..; \
    11  	else true; fi
    12