7178519 gcc 4.5 fails to link program that needs library in /lib
authorStefan Teleman <stefan.teleman@oracle.com>
Thu, 16 Aug 2012 12:31:27 -0700
changeset 948 3a2902aa30ff
parent 947 829570933c6b
child 949 269fd786651d
7178519 gcc 4.5 fails to link program that needs library in /lib
components/gcc45/patches/000-i386.sol2-10.h.patch
components/gcc45/patches/001-sol2.h.patch
components/gcc45/patches/002-sparc.sol2-bi.h.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/gcc45/patches/000-i386.sol2-10.h.patch	Thu Aug 16 12:31:27 2012 -0700
@@ -0,0 +1,18 @@
+--- gcc-4.5.2/gcc/config/i386/sol2-10.h	Wed Jul 14 01:47:54 2010
++++ gcc-4.5.2/gcc/config/i386/sol2-10.h	Fri Aug  3 22:03:59 2012
[email protected]@ -108,13 +108,8 @@
+   "%{G:-G} \
+    %{YP,*} \
+    %{R*} \
+-   %{compat-bsd: \
+-     %{!YP,*:%{p|pg:-Y P,/usr/ucblib/64:/usr/lib/libp/64:/lib/64:/usr/lib/64} \
+-             %{!p:%{!pg:-Y P,/usr/ucblib/64:/lib:/usr/lib/64}}} \
+-             -R /usr/ucblib/64} \
+-   %{!compat-bsd: \
+-     %{!YP,*:%{p|pg:-Y P,/usr/lib/libp/64:/lib/64:/usr/lib/64} \
+-             %{!p:%{!pg:-Y P,/lib/64:/usr/lib/64}}}}"
++   %{!YP,*:%{p|pg:-Y P,%R/usr/lib/libp/64:%R/lib/64:%R/usr/lib/64} \
++           %{!p:%{!pg:-Y P,%R/lib/64:%R/usr/lib/64}}}"
+ 
+ #undef LINK_ARCH64_SPEC
+ #define LINK_ARCH64_SPEC LINK_ARCH64_SPEC_BASE
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/gcc45/patches/001-sol2.h.patch	Thu Aug 16 12:31:27 2012 -0700
@@ -0,0 +1,18 @@
+--- gcc-4.5.2/gcc/config/sol2.h	Fri Apr 16 06:33:58 2010
++++ gcc-4.5.2/gcc/config/sol2.h	Fri Aug  3 21:56:01 2012
[email protected]@ -155,13 +155,8 @@
+   "%{G:-G} \
+    %{YP,*} \
+    %{R*} \
+-   %{compat-bsd: \
+-     %{!YP,*:%{p|pg:-Y P,%R/usr/ucblib:%R/usr/ccs/lib/libp:%R/usr/lib/libp:%R/usr/ccs/lib:%R/usr/lib} \
+-             %{!p:%{!pg:-Y P,%R/usr/ucblib:%R/usr/ccs/lib:%R/usr/lib}}} \
+-             -R %R/usr/ucblib} \
+-   %{!compat-bsd: \
+-     %{!YP,*:%{p|pg:-Y P,%R/usr/ccs/lib/libp:%R/usr/lib/libp:%R/usr/ccs/lib:%R/usr/lib} \
+-             %{!p:%{!pg:-Y P,%R/usr/ccs/lib:%R/usr/lib}}}}"
++   %{!YP,*:%{p|pg:-Y P,%R/usr/lib/libp:%R/lib:%R/usr/lib} \
++           %{!p:%{!pg:-Y P,%R/lib:%R/usr/lib}}}"
+ 
+ #undef LINK_ARCH32_SPEC
+ #define LINK_ARCH32_SPEC LINK_ARCH32_SPEC_BASE
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/gcc45/patches/002-sparc.sol2-bi.h.patch	Thu Aug 16 12:31:27 2012 -0700
@@ -0,0 +1,18 @@
+--- gcc-4.5.2/gcc/config/sparc/sol2-bi.h	Fri Apr  2 12:54:46 2010
++++ gcc-4.5.2/gcc/config/sparc/sol2-bi.h	Fri Aug  3 21:59:09 2012
[email protected]@ -194,13 +194,8 @@
+    %{G:-G} \
+    %{YP,*} \
+    %{R*} \
+-   %{compat-bsd: \
+-     %{!YP,*:%{p|pg:-Y P,%R/usr/ucblib/sparcv9:%R/usr/lib/libp/sparcv9:%R/usr/lib/sparcv9} \
+-       %{!p:%{!pg:-Y P,%R/usr/ucblib/sparcv9:%R/usr/lib/sparcv9}}} \
+-     -R %R/usr/ucblib/sparcv9} \
+-   %{!compat-bsd: \
+-     %{!YP,*:%{p|pg:-Y P,%R/usr/lib/libp/sparcv9:%R/usr/lib/sparcv9} \
+-       %{!p:%{!pg:-Y P,%R/usr/lib/sparcv9}}}}"
++   %{!YP,*:%{p|pg:-Y P,%R/usr/lib/libp/64:%R/lib/64:%R/usr/lib/64} \
++     %{!p:%{!pg:-Y P,%R/lib/64:%R/usr/lib/64}}}"
+ 
+ #define LINK_ARCH64_SPEC LINK_ARCH64_SPEC_BASE
+