Subject: re: gcc3 "millicode" problems with sh3 (toolchain/22452)
To: Todd Vierling <tv@pobox.com>
From: matthew green <mrg@eterna.com.au>
List: port-sh3
Date: 09/04/2003 10:50:15
   
   : AFAIK, linux-sh folks solved this by simply linking all shared libs
   : against libgcc_pic.a (that has relevant symbols marked as .hidden).
   : I'm not sure if this is ok, as it will mean that each shared lib will
   : pull in *all* the symbols it needs from libgcc.
   
   This part should already be happening.  NetBSD's gcc LIBGCC_SPEC will use
   -lgcc_pic in place of -lgcc when invoking "gcc -shared" for link.


this is also in GCC3, but not in the NETBSD_NATIVE case (which the cross
compiler in $TOOLDIR does not define)...  for a /usr/bin/cc == GCC3 system
i get this from dumpspecs:

	%{!symbolic:                         %{!shared:                        %{!p:                             %{!pg: -lgcc}}}             %{shared: -lgcc_pic}            %{p: -lgcc_p}                   %{pg: -lgcc_p}}



.mrg.