patches/gcc/3.3/sh-spec.patch
changeset 1 eeea35fbf182
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/gcc/3.3/sh-spec.patch	Sat Feb 24 11:00:05 2007 +0000
     1.3 @@ -0,0 +1,45 @@
     1.4 +Message-Id: <200308020452.h724q0n01509@r-rr.iij4u.or.jp>
     1.5 +To: dank@kegel.com
     1.6 +Cc: kkojima@rr.iij4u.or.jp
     1.7 +Subject: Re: Writing PIC version of __udivsi3_i4?
     1.8 +In-Reply-To: Your message of "Fri, 01 Aug 2003 21:15:27 -0700"
     1.9 +	<3F2B3ADF.6030206@kegel.com>
    1.10 +References: <3F2B3ADF.6030206@kegel.com>
    1.11 +Date: Sat, 02 Aug 2003 13:58:05 +0900
    1.12 +From: kaz Kojima <kkojima@rr.iij4u.or.jp>
    1.13 +
    1.14 +Dan Kegel <dank@kegel.com> wrote:
    1.15 +> It seems it might be from gcc's spec file:
    1.16 +> 
    1.17 +> *subtarget_link_spec:
    1.18 +> %{shared:-shared}    %{!static:      %{rdynamic:-export-dynamic}      %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}      %{!rpath:-rpath /lib}}    %{static:-static}
    1.19 +> 
    1.20 +> as the only place -rpath showed up was in the output of gcc -v as it
    1.21 +> was linking libc.so.
    1.22 +> 
    1.23 +> Well, that's a clue, anyway!  Guess I'll dig through the spec files
    1.24 +> tomorrow to see if I can figure it out some more.
    1.25 +
    1.26 +I've grepped gcc/config/*/*.h and found only SH and old libc1 stuffs
    1.27 +of i386/alpha include %{!rpath:-rpath ... in 3.3 release and the
    1.28 +current CVS. And my sh-gcc's specs doesn't have this :-(
    1.29 +It would be the Right Thing to remove this stuff simply. How about
    1.30 +the gcc patch below?
    1.31 +
    1.32 +Regards,
    1.33 +	kaz
    1.34 +--
    1.35 +--- gcc-3.3/gcc/config/sh/linux.h.orig	Sat Aug  2 13:20:57 2003
    1.36 ++++ gcc-3.3/gcc/config/sh/linux.h	Sat Aug  2 13:22:42 2003
    1.37 +@@ -48,8 +48,7 @@ do { \
    1.38 +   "%{shared:-shared} \
    1.39 +    %{!static: \
    1.40 +      %{rdynamic:-export-dynamic} \
    1.41 +-     %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2} \
    1.42 +-     %{!rpath:-rpath /lib}} \
    1.43 ++     %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}} \
    1.44 +    %{static:-static}"
    1.45 + 
    1.46 + /* The GNU C++ standard library requires that these macros be defined.  */
    1.47 +
    1.48 +