aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-07-29 22:55:25 +0000
committerRichard Stallman <rms@gnu.org>1992-07-29 22:55:25 +0000
commit7ede72fcf21bb993d5dc74c181904d66bbe95c9d (patch)
tree3a8d576d3c89d8627c48e20947b8e949d1713933
parentd9f8a19965f50d086463522cb5d80a7af24c2468 (diff)
downloadgcc-7ede72fcf21bb993d5dc74c181904d66bbe95c9d.zip
gcc-7ede72fcf21bb993d5dc74c181904d66bbe95c9d.tar.gz
gcc-7ede72fcf21bb993d5dc74c181904d66bbe95c9d.tar.bz2
(link_command_spec): Accept -static but do nothing with it.
From-SVN: r1715
-rw-r--r--gcc/gcc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 4efe9e2..d225941 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -550,17 +550,19 @@ static int n_default_compilers
#ifdef LINK_LIBGCC_SPECIAL
/* Have gcc do the search for libgcc.a. */
/* -u* was put back because both BSD and SysV seem to support it. */
+/* %{static:} simply prevents an error message if the target machine
+ doesn't handle -static. */
static char *link_command_spec = "\
%{!c:%{!M:%{!MM:%{!E:%{!S:ld %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} \
%{r} %{s} %{T*} %{t} %{u*} %{x} %{z}\
- %{!A:%{!nostdlib:%S}} \
+ %{!A:%{!nostdlib:%S}} %{static:}\
%{L*} %o %{!nostdlib:libgcc.a%s %L libgcc.a%s %{!A:%E}}\n }}}}}";
#else
/* Use -L and have the linker do the search for -lgcc. */
static char *link_command_spec = "\
%{!c:%{!M:%{!MM:%{!E:%{!S:ld %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} \
%{r} %{s} %{T*} %{t} %{u*} %{x} %{z}\
- %{!A:%{!nostdlib:%S}} \
+ %{!A:%{!nostdlib:%S}} %{static:}\
%{L*} %D %o %{!nostdlib:-lgcc %L -lgcc %{!A:%E}}\n }}}}}";
#endif