=== modified file 'src/Makefile.OCaml' --- src/Makefile.OCaml 2009-05-05 08:28:15 +0000 +++ src/Makefile.OCaml 2009-05-05 12:54:21 +0000 @@ -157,6 +157,10 @@ endif MINOSXVERSION=10.5 +XCODEFLAGS=-sdk macosx$(MINOSXVERSION) +ifeq ($(OSARCH),osx) + CAMLFLAGS+=-ccopt -mmacosx-version-min=$(MINOSXVERSION) +endif # NOTE: the OCAMLLIBDIR is not getting passed correctly? # The two cases for cltool are needed because Xcode 2.1+ @@ -164,7 +168,7 @@ .PHONY: macexecutable macexecutable: $(NAME)-blob.o # sed -e's/@@VERSION@@/$(VERSION)/' $(UIMACDIR)/Info.plist.template > $(UIMACDIR)/Info.plist - (cd $(UIMACDIR); xcodebuild OCAMLLIBDIR="$(OCAMLLIBDIR)" SYMROOT=build) + (cd $(UIMACDIR); xcodebuild $(XCODEFLAGS) OCAMLLIBDIR="$(OCAMLLIBDIR)" SYMROOT=build) if [ -e $(UIMACDIR)/build/Default ]; then \ gcc -mmacosx-version-min=$(MINOSXVERSION) $(UIMACDIR)/cltool.c -o $(UIMACDIR)/build/Default/Unison.app/Contents/MacOS/cltool -framework Carbon; \ else \