diff options
author | oliva <oliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-09-28 15:52:01 +0000 |
---|---|---|
committer | oliva <oliva@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-09-28 15:52:01 +0000 |
commit | f07251bcb08384d95719e1ec1ab69d900226f0af (patch) | |
tree | 2bad8419651e95a4a3dc2aec3bd669571187570a /gcc/collect2.c | |
parent | c7d58dfadcc3daae631e18958f1314700d4903b6 (diff) | |
download | ppe42-gcc-f07251bcb08384d95719e1ec1ab69d900226f0af.tar.gz ppe42-gcc-f07251bcb08384d95719e1ec1ab69d900226f0af.zip |
* configure.in: new flags --with-ld and --with-as, equivalent
to setting LD and AS environment variables. Test whether
specified arguments are GNU commands, and report them with
checking messages. Use the specified AS for configure
tests too.
* configure: ditto
* acconfig.h: add DEFAULT_ASSEMBLER and DEFAULT_LINKER
* config.in: ditto
* gcc.c (find_a_file): when looking for `as' and `ld', return
the DEFAULT program if it exists
* collect2.c (main): use DEFAULT_LINKER if it exists
* gcc.c (find_a_file): the test for existence of a full
pathname was reversed
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22629 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/collect2.c')
-rw-r--r-- | gcc/collect2.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/collect2.c b/gcc/collect2.c index 10cc4b6bdf3..7d2a5705eec 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -1075,6 +1075,11 @@ main (argc, argv) /* Try to discover a valid linker/nm/strip to use. */ /* Maybe we know the right file to use (if not cross). */ +#ifdef DEFAULT_LINKER + if (access (DEFAULT_LINKER, X_OK) == 0) + ld_file_name = DEFAULT_LINKER; + if (ld_file_name == 0) +#endif #ifdef REAL_LD_FILE_NAME ld_file_name = find_a_file (&path, REAL_LD_FILE_NAME); if (ld_file_name == 0) |