1 2 crt2.o: $(srcdir)/config/rs6000/darwin-crt2.c 3 $(crt_compile) -mmacosx-version-min=10.1 -c $< 4 5 # The sources for this indicate that there are some parts that 6 # don't apply >= 10.4 7 crt3_2.o: $(srcdir)/config/darwin-crt3.c 8 $(crt_compile) -mmacosx-version-min=10.1 -c $< 9 10 # The outlined register save/restore functions need to run anywhere, and 11 # they must be leaf functions suitable for use in an endfile. 12 13 PPC_ENDFILE_SRC = \ 14 $(srcdir)/config/rs6000/darwin-gpsave.S \ 15 $(srcdir)/config/rs6000/darwin-fpsave.S \ 16 $(srcdir)/config/rs6000/darwin-vecsave.S 17 18 PPC_ENDFILE_OBJS = \ 19 darwin-gpsave.o \ 20 darwin-fpsave.o \ 21 darwin-vecsave.o 22 23 darwin-gpsave.o: $(srcdir)/config/rs6000/darwin-gpsave.S 24 $(crt_compile) -mmacosx-version-min=10.1 -c $< 25 26 darwin-fpsave.o: $(srcdir)/config/rs6000/darwin-fpsave.S 27 $(crt_compile) -mmacosx-version-min=10.1 -c $< 28 29 darwin-vecsave.o: $(srcdir)/config/rs6000/darwin-vecsave.S 30 $(crt_compile) -mmacosx-version-min=10.1 -c $< 31 32 # We build these into a library, so that they are only linked as needed and not 33 # forced into every object. 34 35 libef_ppc.a: $(PPC_ENDFILE_OBJS) 36 $(AR_CREATE_FOR_TARGET) $@ $(PPC_ENDFILE_OBJS) 37 $(RANLIB_FOR_TARGET) $@ 38 39 dw_ppc.o: $(srcdir)/config/rs6000/darwin-world.S 40 $(crt_compile) -mmacosx-version-min=10.1 -c $< 41 42 LIB2ADD = $(srcdir)/config/rs6000/darwin-tramp.S \ 43 $(srcdir)/config/darwin-64.c \ 44 $(srcdir)/config/rs6000/darwin-world.S 45 46 # The .S files above are designed to run on all processors, even though 47 # they use AltiVec instructions. 48 # -Wa is used because -force_cpusubtype_ALL doesn't work with -dynamiclib. 49 50 HOST_LIBGCC2_CFLAGS += -Wa,-force_cpusubtype_ALL 51 52 # Although the default for 10.4 is G3, we need the unwinder to be built 53 # with vector support so that the "save/rest_world" outlined functions are 54 # correctly invoked. 55 unwind-dw2_s.o: HOST_LIBGCC2_CFLAGS += -maltivec 56 unwind-dw2.o: HOST_LIBGCC2_CFLAGS += -maltivec 57 58 LIB2ADDEH += $(srcdir)/config/rs6000/darwin-fallback.c 59