summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1993-07-21 20:43:56 +0000
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>1993-07-21 20:43:56 +0000
commit06761df0dc3dba0479f295a302ee9e5bc02369ec (patch)
tree3f92f175ac7364d0c913c6e567ba51a81e79e392 /gcc
parent59ce890e57f865379214796beda2b9911e767d92 (diff)
downloadgcc-06761df0dc3dba0479f295a302ee9e5bc02369ec.tar.gz
(link_command_spec): Move %{T*} after %{L*} and %D.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4951 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/gcc.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 972adb735f0..437fcd053ed 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -576,31 +576,34 @@ static int n_default_compilers
/* -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. */
+/* 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_LIBGCC_SPECIAL_1
/* Have gcc do the search for libgcc.a, but generate -L options as usual. */
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*} %{t} %{u*} %{x} %{z}\
+ %{r} %{s} %{t} %{u*} %{x} %{z}\
%{!A:%{!nostartfiles:%{!nostdlib:%S}}} %{static:}\
- %{L*} %D %o %{!nostdlib:libgcc.a%s %L libgcc.a%s %{!A:%E}}\n }}}}}}";
+ %{L*} %D %{T*} %o %{!nostdlib:libgcc.a%s %L libgcc.a%s %{!A:%E}}\n }}}}}}";
#else
#ifdef LINK_LIBGCC_SPECIAL
/* Have gcc do the search for libgcc.a, and don't generate -L options. */
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*} %{t} %{u*} %{x} %{z}\
+ %{r} %{s} %{t} %{u*} %{x} %{z}\
%{!A:%{!nostartfiles:%{!nostdlib:%S}}} %{static:}\
- %{L*} %o %{!nostdlib:libgcc.a%s %L libgcc.a%s %{!A:%E}}\n }}}}}}";
+ %{L*} %{T*} %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 = "\
%{!fsyntax-only: \
%{!c:%{!M:%{!MM:%{!E:%{!S:ld %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} \
- %{r} %{s} %{T*} %{t} %{u*} %{x} %{z}\
+ %{r} %{s} %{t} %{u*} %{x} %{z}\
%{!A:%{!nostartfiles:%{!nostdlib:%S}}} %{static:}\
- %{L*} %D %o %{!nostdlib:-lgcc %L -lgcc %{!A:%E}}\n }}}}}}";
+ %{L*} %D %{T*} %o %{!nostdlib:-lgcc %L -lgcc %{!A:%E}}\n }}}}}}";
#endif
#endif