From cf78f929ca3e675f4ededf7f26c1e672460b3dc1 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Wed, 29 Nov 1995 23:12:54 +0000 Subject: [PATCH] (LIB_SPEC): Don't use absolute path names if cross compiling. From-SVN: r10633 --- gcc/config/svr3.h | 4 ++++ 1 file changed, 4 insertions(+) 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. */ -- 2.30.2