This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

darwin SDK support


This fixes a problem targetting older systems with the crt[23].o files
on powerpc-apple-darwin9, they have to be built as G3 binaries, not G4
binaries.

2006-12-22  Mike Stump  <mrs@apple.com>

	* config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Add
	-mmacosx-version-min=10.4.
	(crt2.o): Add $(DARWIN_EXTRA_CRT_BUILD_CFLAGS).

Doing diffs in config:
--- config/rs6000/t-darwin.~1~	2006-12-08 16:08:08.000000000 -0800
+++ config/rs6000/t-darwin	2006-12-22 20:07:22.000000000 -0800
@@ -8,7 +8,7 @@ LIB2FUNCS_STATIC_EXTRA = \
 	$(srcdir)/config/rs6000/darwin-vecsave.asm  \
 	$(srcdir)/config/rs6000/darwin-world.asm
 
-DARWIN_EXTRA_CRT_BUILD_CFLAGS = -mlongcall
+DARWIN_EXTRA_CRT_BUILD_CFLAGS = -mlongcall -mmacosx-version-min=10.4
 
 # The .asm files above are designed to run on all processors,
 # even though they use AltiVec instructions.  -Wa is used because
@@ -34,4 +34,5 @@ darwin-tramp.o:		$(srcdir)/config/rs6000
 $(T)crt2$(objext): $(srcdir)/config/darwin-crt2.c $(GCC_PASSES) \
 	$(TCONFIG_H) stmp-int-hdrs tsystem.h
 	$(GCC_FOR_TARGET) $(GCC_CFLAGS) $(INCLUDES) $(MULTILIB_CFLAGS) \
+	  $(DARWIN_EXTRA_CRT_BUILD_CFLAGS) \
 	  -c $(srcdir)/config/darwin-crt2.c -o $(T)crt2$(objext)
--------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]