Permalink
Browse files

Snow Leopard: Force use of gcc 4.0

To still support building a MacOS 10.4 (Tiger) target on a
Snow Leopard development host, we must make sure that we use
the gcc-4.0 compiler and not the default gcc 4.2 compiler.
(I have no way to test Wings on either Tiger or PPC Macs.)

It is probably still possible to build on 10.5 (Leopard) host,
but I have not tested that.

NOTE: This release for Mac OS X has been built with Snow
Leopard (10.6) as the host OS. It is still supposed to work on
Tiger (10.4) with either PPC or Intel CPUs, but I have no way to
actually test that. [bjorng]
  • Loading branch information...
1 parent 601b3ce commit c0f9567f3643fd23d18b7c61900aaa36b3b4325f @bjorng bjorng committed Sep 1, 2009
Showing with 12 additions and 9 deletions.
  1. +3 −2 BUILD.unix
  2. +6 −5 macosx/Wings3d.xcodeproj/project.pbxproj
  3. +3 −2 plugins_src/mac_file/Makefile
View
5 BUILD.unix
@@ -190,8 +190,9 @@ Building an installation package for MacOS X
To build everything and pack it into a DMG file, you'll need:
-- Xcode 3.0. Older versions may work, but I haven't tested them
- with modern versions of Wings.
+- Xcode 3.2 (running on Snow Leopard). Xcode 3.x running on Leopard will
+ probably also work, but I have not tested to build any Wings version after
+ 1.1.12 with that configuration.
- The FBX library. http://www.autodesk.com/fbx
View
11 macosx/Wings3d.xcodeproj/project.pbxproj
@@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
- objectVersion = 42;
+ objectVersion = 44;
objects = {
/* Begin PBXBuildFile section */
@@ -163,7 +163,7 @@
29B97313FDCFA39411CA2CEA /* Project object */ = {
isa = PBXProject;
buildConfigurationList = 4CA8398B085C2B4300C48A7F /* Build configuration list for PBXProject "Wings3d" */;
- compatibilityVersion = "Xcode 2.4";
+ compatibilityVersion = "Xcode 3.0";
hasScannedForEncodings = 1;
mainGroup = 29B97314FDCFA39411CA2CEA /* Wings3d */;
projectDirPath = "";
@@ -356,7 +356,7 @@
isa = XCBuildConfiguration;
buildSettings = {
MACOSX_DEPLOYMENT_TARGET = 10.4;
- SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
+ SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.4u.sdk";
};
name = Debug;
};
@@ -368,7 +368,7 @@
i386,
);
MACOSX_DEPLOYMENT_TARGET = 10.4;
- SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
+ SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.4u.sdk";
};
name = Release;
};
@@ -379,8 +379,9 @@
ppc,
i386,
);
+ GCC_VERSION = 4.0;
MACOSX_DEPLOYMENT_TARGET = 10.4;
- SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
+ SDKROOT = "$(DEVELOPER_SDK_DIR)/MacOSX10.4u.sdk";
};
name = Default;
};
View
5 plugins_src/mac_file/Makefile
@@ -15,6 +15,7 @@ WINGS_EBIN = ../../ebin
WINGS_INTL=../../intl_tools
UNIVERSAL_FLAGS = -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc
CFLAGS = $(UNIVERSAL_FLAGS)
+CC = gcc-4.0
ERL_DIR := $(shell echo 'io:format("~s~n",[code:root_dir()]),halt().' | erl | sed 's,^[0-9]*> *,,g' | tail +2)
@@ -42,12 +43,12 @@ $(LIBDIR)/%.beam: %.erl
$(LIBDIR)/mac_wings_file_drv.so: mac_wings_file_drv.c
install -d $(LIBDIR)
- cc -ObjC -I $(ERL_DIR)/usr/include -bundle -flat_namespace -undefined suppress \
+ $(CC) -ObjC -I $(ERL_DIR)/usr/include -bundle -flat_namespace -undefined suppress \
-framework Cocoa -o $(LIBDIR)/mac_wings_file_drv.so $(UNIVERSAL_FLAGS) \
mac_wings_file_drv.c
$(LIBDIR)/mac_wings_image_drv.so: mac_wings_image_drv.m
install -d $(LIBDIR)
- cc -I $(ERL_DIR)/usr/include -bundle -flat_namespace -undefined suppress \
+ $(CC) -I $(ERL_DIR)/usr/include -bundle -flat_namespace -undefined suppress \
-framework Cocoa -o $(LIBDIR)/mac_wings_image_drv.so $(UNIVERSAL_FLAGS) \
mac_wings_image_drv.m

0 comments on commit c0f9567

Please sign in to comment.