aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDoug Evans <dje@gnu.org>1995-11-29 23:08:59 +0000
committerDoug Evans <dje@gnu.org>1995-11-29 23:08:59 +0000
commitf905fc0dc309950a442822709e89d7148f879ad9 (patch)
tree7301702076d19d5a7e78e6b1e0a8f80d911676fd /gcc
parent6f5541c735f577d626f368646fdd47d4e0abbcc8 (diff)
downloadgcc-f905fc0dc309950a442822709e89d7148f879ad9.zip
gcc-f905fc0dc309950a442822709e89d7148f879ad9.tar.gz
gcc-f905fc0dc309950a442822709e89d7148f879ad9.tar.bz2
svr4.h (MD_EXEC_PREFIX): Don't use if cross compiling.
* svr4.h (MD_EXEC_PREFIX): Don't use if cross compiling. (MD_STARTFILE_PREFIX): Likewise. (LINK_SPEC): Don't use absolute path names if cross compiling. From-SVN: r10632
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/svr4.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/config/svr4.h b/gcc/config/svr4.h
index d2cab2e..6fe165b 100644
--- a/gcc/config/svr4.h
+++ b/gcc/config/svr4.h
@@ -113,14 +113,18 @@ Boston, MA 02111-1307, USA.
/* Under svr4, the normal location of the `ld' and `as' programs is the
/usr/ccs/bin directory. */
+#ifndef CROSS_COMPILE
#undef MD_EXEC_PREFIX
#define MD_EXEC_PREFIX "/usr/ccs/bin/"
+#endif
/* Under svr4, the normal location of the various *crt*.o files is the
/usr/ccs/lib directory. */
+#ifndef CROSS_COMPILE
#undef MD_STARTFILE_PREFIX
#define MD_STARTFILE_PREFIX "/usr/ccs/lib/"
+#endif
/* Provide a LIB_SPEC appropriate for svr4. Here we tack on the default
standard C library (unless we are building a shared library). */
@@ -167,6 +171,16 @@ Boston, MA 02111-1307, USA.
not being done. */
#undef LINK_SPEC
+#ifdef CROSS_COMPILE
+#define LINK_SPEC "%{h*} %{V} %{v:%{!V:-V}} \
+ %{b} %{Wl,*:%*} \
+ %{static:-dn -Bstatic} \
+ %{shared:-G -dy -z text %{!h*:%{o*:-h %*}}} \
+ %{symbolic:-Bsymbolic -G -dy -z text %{!h*:%{o*:-h %*}}} \
+ %{G:-G} \
+ %{YP,*} \
+ %{Qy:} %{!Qn:-Qy}"
+#else
#define LINK_SPEC "%{h*} %{V} %{v:%{!V:-V}} \
%{b} %{Wl,*:%*} \
%{static:-dn -Bstatic} \
@@ -177,6 +191,7 @@ Boston, MA 02111-1307, USA.
%{!YP,*:%{p:-Y P,/usr/ccs/lib/libp:/usr/lib/libp:/usr/ccs/lib:/usr/lib} \
%{!p:-Y P,/usr/ccs/lib:/usr/lib}} \
%{Qy:} %{!Qn:-Qy}"
+#endif
/* Gcc automatically adds in one of the files /usr/ccs/lib/values-Xc.o,
/usr/ccs/lib/values-Xa.o, or /usr/ccs/lib/values-Xt.o for each final