xref: /netbsd-src/external/gpl3/gcc.old/dist/libgcc/config/t-darwin (revision 33881f779a77dce6440bdc44610d94de75bebefe)
1# Set this as a minimum (unless overriden by arch t-files) since it's a
2# reasonable lowest common denominator that works for all our archs.
3HOST_LIBGCC2_CFLAGS += -mmacosx-version-min=10.5
4
5crt3.o: $(srcdir)/config/darwin-crt3.c
6	$(crt_compile) $(DARWIN_EXTRA_CRT_BUILD_CFLAGS) -c $<
7
8crttms.o: $(srcdir)/config/darwin-crt-tm.c
9	$(crt_compile) $(DARWIN_EXTRA_CRT_BUILD_CFLAGS) -DSTART -c $<
10
11crttme.o: $(srcdir)/config/darwin-crt-tm.c
12	$(crt_compile) $(DARWIN_EXTRA_CRT_BUILD_CFLAGS) -DEND -c $<
13
14# -pipe because there's an assembler bug, 4077127, which causes
15# it to not properly process the first # directive, causing temporary
16# file names to appear in stabs, causing the bootstrap to fail.  Using -pipe
17# works around this by not having any temporary file names.
18HOST_LIBGCC2_CFLAGS += -pipe
19
20# Use unwind-dw2-fde-darwin
21LIB2ADDEH = $(srcdir)/unwind-dw2.c $(srcdir)/config/unwind-dw2-fde-darwin.c \
22  $(srcdir)/unwind-sjlj.c $(srcdir)/unwind-c.c
23