8738543878
We have a small unwinder shim that is only used for Darwin10 (and only then in quite specific cases). To avoid linking this code for every executable or DSO, we can present the crt as a convenience library (rather than a .o file). Signed-off-by: Iain Sandoe <iain@sandoe.co.uk> gcc/ChangeLog: * config/darwin.h (LINK_COMMAND_SPEC_A): Use Darwin10 unwinder shim as a convenience library. libgcc/ChangeLog: * config.host: Use convenience library for Darwin10 unwinder shim. * config/t-darwin: Build Darwin10 unwinder shim as a convenience library.
27 lines
995 B
Plaintext
27 lines
995 B
Plaintext
# Set this as a minimum (unless overriden by arch t-files) since it's a
|
||
# reasonable lowest common denominator that works for all our archs.
|
||
HOST_LIBGCC2_CFLAGS += -mmacosx-version-min=10.4
|
||
|
||
crt3.o: $(srcdir)/config/darwin-crt3.c
|
||
$(crt_compile) -mmacosx-version-min=10.4 -c $<
|
||
|
||
crttms.o: $(srcdir)/config/darwin-crt-tm.c
|
||
$(crt_compile) -mmacosx-version-min=10.4 -DSTART -c $<
|
||
|
||
crttme.o: $(srcdir)/config/darwin-crt-tm.c
|
||
$(crt_compile) -mmacosx-version-min=10.4 -DEND -c $<
|
||
|
||
# Use unwind-dw2-fde-darwin
|
||
LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/config/unwind-dw2-fde-darwin.c \
|
||
$(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c
|
||
|
||
# Patch to __Unwind_Find_Enclosing_Function for Darwin10.
|
||
d10-uwfef.o: $(srcdir)/config/darwin10-unwind-find-enc-func.c
|
||
$(crt_compile) -mmacosx-version-min=10.6 -c $<
|
||
|
||
# Using this crt as a library means that it will not be added to an exe
|
||
# (or module) unless needed.
|
||
libd10-uwfef.a: d10-uwfef.o
|
||
$(AR_CREATE_FOR_TARGET) $@ d10-uwfef.o
|
||
$(RANLIB_FOR_TARGET) $@
|