summaryrefslogtreecommitdiffstats
path: root/gcc/gcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 09b03326a68..7117d603814 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -321,7 +321,7 @@ or with constant text in a single argument.
This allows config.h to specify part of the spec for running as.
%A process ASM_FINAL_SPEC as a spec. A capital A is actually
used here. This can be used to run a post-processor after the
- assembler has done it's job.
+ assembler has done its job.
%D Dump out a -L option for each directory in startfile_prefixes.
If multilib_dir is set, extra entries are generated with it affixed.
%l process LINK_SPEC as a spec.
@@ -749,6 +749,12 @@ static int n_default_compilers
/* We want %{T*} after %{L*} and %D so that it can be used to specify linker
scripts which exist in user specified directories, or in standard
directories. */
+#ifdef LINK_COMMAND_SPEC
+/* Provide option to override link_command_spec from machine specific
+ configuration files. */
+static char *link_command_spec =
+ LINK_COMMAND_SPEC;
+#else
#ifdef LINK_LIBGCC_SPECIAL
/* Don't generate -L options. */
static char *link_command_spec = "\
@@ -774,6 +780,7 @@ static char *link_command_spec = "\
%{T*}\
\n }}}}}}";
#endif
+#endif
/* A vector of options to give to the linker.
These options are accumulated by %x,
OpenPOWER on IntegriCloud