aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorJason Thorpe <thorpej@gcc.gnu.org>2002-11-26 00:31:31 +0000
committerJason Thorpe <thorpej@gcc.gnu.org>2002-11-26 00:31:31 +0000
commit152a5a9c947ff82ced5cb47beb197f53330ea12c (patch)
treefb57bd2526716f6ab368a2f04bc887feb665ac9b /gcc/config
parenta4967b8db12d7f2d9b0d80830507f806c4c36e5b (diff)
downloadgcc-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.h4
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