patches/gcc/4.4.2/160-netbsd-symbolic.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 1544 2228ea3f6b79
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 diff -durN gcc-4.4.0.orig/gcc/config/netbsd-elf.h gcc-4.4.0/gcc/config/netbsd-elf.h
     2 --- gcc-4.4.0.orig/gcc/config/netbsd-elf.h	2007-09-03 18:14:04.000000000 +0200
     3 +++ gcc-4.4.0/gcc/config/netbsd-elf.h	2009-05-27 21:38:14.000000000 +0200
     4 @@ -82,6 +82,7 @@
     5  #define NETBSD_LINK_SPEC_ELF \
     6    "%{assert*} %{R*} %{rpath*} \
     7     %{shared:-shared} \
     8 +   %{symbolic:-Bsymbolic} \
     9     %{!shared: \
    10       -dc -dp \
    11       %{!nostdlib: \