diff options
author | thorpej <thorpej@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-11-26 00:31:31 +0000 |
---|---|---|
committer | thorpej <thorpej@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-11-26 00:31:31 +0000 |
commit | 68d74c02e713f767c110e40e67a5a912a1a49c8a (patch) | |
tree | fb57bd2526716f6ab368a2f04bc887feb665ac9b /gcc/config/netbsd-elf.h | |
parent | 5eeaefacd3d5e8fc69575b6c8ef06cb0171607d7 (diff) | |
download | gcc-68d74c02e713f767c110e40e67a5a912a1a49c8a.tar.gz |
* 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)".
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@59480 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/netbsd-elf.h')
-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 4846ba605bb..cb38b93ba0a 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 |