From 7f9cce93f309f8c4363da3012ccd78bffd0bda38 Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Mon, 12 Jun 1995 19:01:48 +0000 Subject: (link_command_spec): Undo patch of May 11. -nostdlib implies -nostartfiles again. New argument -nodefaultlibs. From-SVN: r9932 --- gcc/gcc.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'gcc') diff --git a/gcc/gcc.c b/gcc/gcc.c index 2a1d277..0cd4f50 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -719,18 +719,20 @@ static char *link_command_spec = "\ %{!fsyntax-only: \ %{!c:%{!M:%{!MM:%{!E:%{!S:ld %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} \ %{r} %{s} %{t} %{u*} %{x} %{z} %{Z}\ - %{!A:%{!nostartfiles:%S}} %{static:}\ - %{L*} %{T*} %o %{!nostdlib:%G %L %G}\ - %{!A:%{!nostartfiles:%E}}\n }}}}}}"; + %{!A:%{!nostdlib:%{!nostartfiles:%S}}}\ + %{static:} %{L*} %{T*} %o\ + %{!nostdlib:%{!nodefaultlibs:%G %L %G}}\ + %{!A:%{!nostdlib:%{!nostartfiles:%E}}}\n }}}}}}"; #else /* Use -L. */ static char *link_command_spec = "\ %{!fsyntax-only: \ %{!c:%{!M:%{!MM:%{!E:%{!S:ld %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} \ %{r} %{s} %{t} %{u*} %{x} %{z} %{Z}\ - %{!A:%{!nostartfiles:%S}} %{static:}\ - %{L*} %D %{T*} %o %{!nostdlib:%G %L %G}\ - %{!A:%{!nostartfiles:%E}}\n }}}}}}"; + %{!A:%{!nostdlib:%{!nostartfiles:%S}}}\ + %{static:} %{L*} %D %{T*} %o\ + %{!nostdlib:%{!nodefaultlibs:%G %L %G}}\ + %{!A:%{!nostdlib:%{!nostartfiles:%E}}}\n }}}}}}"; #endif /* A vector of options to give to the linker. -- cgit v1.1