diff options
author | Jason Thorpe <thorpej@gcc.gnu.org> | 2002-11-26 00:31:31 +0000 |
---|---|---|
committer | Jason Thorpe <thorpej@gcc.gnu.org> | 2002-11-26 00:31:31 +0000 |
commit | 152a5a9c947ff82ced5cb47beb197f53330ea12c (patch) | |
tree | fb57bd2526716f6ab368a2f04bc887feb665ac9b /gcc/config | |
parent | a4967b8db12d7f2d9b0d80830507f806c4c36e5b (diff) | |
download | gcc-152a5a9c947ff82ced5cb47beb197f53330ea12c.zip gcc-152a5a9c947ff82ced5cb47beb197f53330ea12c.tar.gz gcc-152a5a9c947ff82ced5cb47beb197f53330ea12c.tar.bz2 |
gcc.c (static_spec_functions): Add if-exists-else spec function.
* gcc.c (static_spec_functions): Add if-exists-else spec
function.
(if_exists_else_spec_function): New function.
* doc/invoke.texi: Document the if-exists-else spec function.
* config/netbsd-elf.h (NETBSD_STARTFILE_SPEC): For -static, use
"%:if-exists-else(crtbeginT%O%s crtbegin%O%s)".
From-SVN: r59480
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/netbsd-elf.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/config/netbsd-elf.h b/gcc/config/netbsd-elf.h index 4846ba6..cb38b93 100644 --- a/gcc/config/netbsd-elf.h +++ b/gcc/config/netbsd-elf.h @@ -53,7 +53,9 @@ Boston, MA 02111-1307, USA. */ %{p:gcrt0%O%s} \ %{!p:crt0%O%s}}} \ %:if-exists(crti%O%s) \ - %{!shared:crtbegin%O%s} %{shared:crtbeginS%O%s}" + %{static:%:if-exists-else(crtbeginT%O%s crtbegin%O%s)} \ + %{!static: \ + %{!shared:crtbegin%O%s} %{shared:crtbeginS%O%s}}" #undef STARTFILE_SPEC #define STARTFILE_SPEC NETBSD_STARTFILE_SPEC |