aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/t-darwin
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@apple.com>2006-03-16 02:37:09 +0000
committerGeoffrey Keating <geoffk@apple.com>2006-03-16 02:37:09 +0000
commit34df2308eeb8717d1c7c79719bc5f1bb6adbcc45 (patch)
treeb6ff2fd69076032fa47ae9dc5b1da921c649b574 /gcc/config/t-darwin
parent97191b5d7f2372f71255f12ae2b28889985716ad (diff)
2006-03-15 Geoffrey Keating <geoffk@apple.com>
* config.gcc (*-*-darwin*): Don't build crt2.o for all Darwin ports. Do switch on default_use_cxa_atexit. (powerpc*-*-darwin*): Build crt2.o on powerpc. * config/darwin-crt3.o: New. * config/darwin.h (LINK_SPEC): If -shared-libgcc, make linker default to 10.3. Pass '-multiply_defined suppress' if crt3.o is in use. (STARTFILE_SPEC): Add crt3.o when -shared-libgcc and appropriate OS version. * config/rs6000/t-darwin: Move crt2.o building to here. * config/rs6000/darwin.h (C_COMMON_OVERRIDE_OPTIONS): Update Mac OS version for using __cxa_get_exception_ptr. Don't test versions of __cxa_atexit. 2006-03-15 Geoffrey Keating <geoffk@apple.com> * g++.old-deja/g++.other/init18.C: New. * g++.old-deja/g++.other/init5.C: Remove xfail. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@112121 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/t-darwin')
-rw-r--r--gcc/config/t-darwin7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/config/t-darwin b/gcc/config/t-darwin
index 3e524f36901..5995f30131f 100644
--- a/gcc/config/t-darwin
+++ b/gcc/config/t-darwin
@@ -12,11 +12,12 @@ darwin-c.o: $(srcdir)/config/darwin-c.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
gt-darwin.h : s-gtype ; @true
-# Explain how to build crt2.o
-$(T)crt2$(objext): $(srcdir)/config/darwin-crt2.c $(GCC_PASSES) \
+# How to build crt3.o
+EXTRA_MULTILIB_PARTS=crt3.o
+$(T)crt3$(objext): $(srcdir)/config/darwin-crt3.c $(GCC_PASSES) \
$(TCONFIG_H) stmp-int-hdrs tsystem.h
$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) \
- -c $(srcdir)/config/darwin-crt2.c -o $(T)crt2$(objext)
+ -c $(srcdir)/config/darwin-crt3.c -o $(T)crt3$(objext)
# Use unwind-dw2-fde-darwin
LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/unwind-dw2-fde-darwin.c \