sol2.h (LINK_ARCH32_SPEC): Define in terms of ...
authorMark Mitchell <mark@codesourcery.com>
Thu, 18 Dec 2003 20:13:51 +0000 (20:13 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Thu, 18 Dec 2003 20:13:51 +0000 (20:13 +0000)
* config/sol2.h (LINK_ARCH32_SPEC): Define in terms of ...
(LINK_ARCH32_SPEC_BASE): ... this new macro.
* config/sparc/sol2-bi.h (LINK_ARCH64_SPEC): Define in terms of
...
(LINK_ARCH64_SPEC_BASE): ... this new macro.
* config/sparc/sol2-gld-bi.h (LINK_ARCH32_SPEC): New macro.
(LINK_ARCH64_SPEC): Likewise.

From-SVN: r74793

gcc/ChangeLog
gcc/config/sol2.h
gcc/config/sparc/sol2-bi.h
gcc/config/sparc/sol2-gld-bi.h

index 15a8b178ff3d1841b8a634e47d617e5e777255c1..2b3f39763cea2b7d028b87df155a91797fa79173 100644 (file)
@@ -1,3 +1,13 @@
+2003-12-18  Mark Mitchell  <mark@codesourcery.com>
+
+       * config/sol2.h (LINK_ARCH32_SPEC): Define in terms of ...
+       (LINK_ARCH32_SPEC_BASE): ... this new macro.
+       * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC): Define in terms of
+       ...
+       (LINK_ARCH64_SPEC_BASE): ... this new macro.
+       * config/sparc/sol2-gld-bi.h (LINK_ARCH32_SPEC): New macro.
+       (LINK_ARCH64_SPEC): Likewise.
+
 2003-12-18  Jason Merrill  <jason@redhat.com>
 
        PR middle-end/13234
index 49dc1ce2ae42d7bcd30fa1af31eef02f2844c087..8728cb792743147e283dbca91b1ee64737ec843c 100644 (file)
@@ -119,8 +119,8 @@ Boston, MA 02111-1307, USA.  */
 #undef STARTFILE_ARCH_SPEC
 #define STARTFILE_ARCH_SPEC STARTFILE_ARCH32_SPEC
 
-#undef LINK_ARCH32_SPEC
-#define LINK_ARCH32_SPEC \
+#undef LINK_ARCH32_SPEC_BASE
+#define LINK_ARCH32_SPEC_BASE \
   "%{G:-G} \
    %{YP,*} \
    %{R*} \
@@ -132,6 +132,9 @@ Boston, MA 02111-1307, USA.  */
      %{!YP,*:%{p|pg:-Y P,/usr/ccs/lib/libp:/usr/lib/libp:/usr/ccs/lib:/usr/lib} \
              %{!p:%{!pg:-Y P,/usr/ccs/lib:/usr/lib}}}}"
 
+#undef LINK_ARCH32_SPEC
+#define LINK_ARCH32_SPEC LINK_ARCH32_SPEC_BASE
+
 #undef LINK_ARCH_SPEC
 #define LINK_ARCH_SPEC LINK_ARCH32_SPEC
 
index 7b6ee8552723c64c2e1324418e6a1ce61d409c28..369c1acde7a8a31d732b71e1d652220fc43c6509 100644 (file)
  * This should be the same as in sol2.h, except with "/sparcv9"
  * appended to the paths and /usr/ccs/lib is no longer necessary
  */
-#define LINK_ARCH64_SPEC \
+#define LINK_ARCH64_SPEC_BASE \
   "%{mcmodel=medlow:-M /usr/lib/ld/sparcv9/map.below4G} \
    %{G:-G} \
    %{YP,*} \
      %{!YP,*:%{p|pg:-Y P,/usr/lib/libp/sparcv9:/usr/lib/sparcv9} \
        %{!p:%{!pg:-Y P,/usr/lib/sparcv9}}}}"
 
+#define LINK_ARCH64_SPEC LINK_ARCH64_SPEC_BASE
+
 #undef LINK_ARCH_SPEC
 #define LINK_ARCH_SPEC "\
 %{m32:%(link_arch32)} \
index eab63a9a7c77f4a96435f1e49f60f0e00f0d7001..26cf24c856c23a037706edb4c72a3e076272946a 100644 (file)
@@ -1,9 +1,18 @@
 /* Definitions of target machine for GCC, for bi-arch SPARC
    running Solaris 2 using the GNU linker.  */
 
+#undef LINK_ARCH32_SPEC
+#define LINK_ARCH32_SPEC \
+  LINK_ARCH32_SPEC_BASE "%{!static: -rpath-link %R/usr/lib}"
+
+#undef LINK_ARCH64_SPEC
+#define LINK_ARCH64_SPEC \
+  LINK_ARCH64_SPEC_BASE "%{!static: -rpath-link %R/usr/lib/sparcv9}"
+
 #undef LINK_ARCH_SPEC
 #define LINK_ARCH_SPEC "\
 %{m32:-m elf32_sparc %(link_arch32)} \
 %{m64:-m elf64_sparc %(link_arch64)} \
 %{!m32:%{!m64:%(link_arch_default)}} \
 "
+