summaryrefslogtreecommitdiff
path: root/gcc/config/svr3.h
diff options
context:
space:
mode:
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>1995-11-29 23:12:54 +0000
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>1995-11-29 23:12:54 +0000
commita53a9377be1e047133f65666dd743acbbb29438b (patch)
tree8f1e93364a19cbda5f3854140cd7c18abf2eb257 /gcc/config/svr3.h
parent07d3264c423c2acc9e067d74a81ff71b144ad50f (diff)
downloadgcc-a53a9377be1e047133f65666dd743acbbb29438b.tar.gz
(LIB_SPEC): Don't use absolute path names if cross compiling.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@10633 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/svr3.h')
-rw-r--r--gcc/config/svr3.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/config/svr3.h b/gcc/config/svr3.h
index fc6e262b7b5..be44ec71b15 100644
--- a/gcc/config/svr3.h
+++ b/gcc/config/svr3.h
@@ -103,7 +103,11 @@ Boston, MA 02111-1307, USA.
#define STARTFILE_SPEC \
"%{pg:gcrt1.o%s}%{!pg:%{p:mcrt1.o%s}%{!p:crt1.o%s}}"
+#ifdef CROSS_COMPILE
+#define LIB_SPEC "-lc crtn.o%s"
+#else
#define LIB_SPEC "%{p:-L/usr/lib/libp}%{pg:-L/usr/lib/libp} -lc crtn.o%s"
+#endif
/* Special flags for the linker. I don't know what they do. */