patches/gcc/4.4.4/160-netbsd-symbolic.patch
author Darcy Watkins <dwatkins@tranzeo.com>
Thu Aug 05 18:19:07 2010 +0200 (2010-08-05)
changeset 2070 bcd33fce4db9
child 2148 ada9128c98b8
permissions -rw-r--r--
cc/gcc: with static ppl, correctly link with libm

On some Fedora boxen (at least FC13), it is also required
to link with libm when static ppl is used.
     1 diff -durN gcc-4.4.0.orig/gcc/config/netbsd-elf.h gcc-4.4.0/gcc/config/netbsd-elf.h
     2 
     3 diff -durN gcc-4.4.4.orig/gcc/config/netbsd-elf.h gcc-4.4.4/gcc/config/netbsd-elf.h
     4 --- gcc-4.4.4.orig/gcc/config/netbsd-elf.h	2007-09-03 18:14:04.000000000 +0200
     5 +++ gcc-4.4.4/gcc/config/netbsd-elf.h	2010-05-16 19:11:50.000000000 +0200
     6 @@ -82,6 +82,7 @@
     7  #define NETBSD_LINK_SPEC_ELF \
     8    "%{assert*} %{R*} %{rpath*} \
     9     %{shared:-shared} \
    10 +   %{symbolic:-Bsymbolic} \
    11     %{!shared: \
    12       -dc -dp \
    13       %{!nostdlib: \