summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rbutil/libtools.make8
-rw-r--r--tools/rbspeex/Makefile12
-rw-r--r--tools/ucl/src/Makefile12
3 files changed, 25 insertions, 7 deletions
diff --git a/rbutil/libtools.make b/rbutil/libtools.make
index 4623808f94..7a125f98ea 100644
--- a/rbutil/libtools.make
+++ b/rbutil/libtools.make
@@ -63,7 +63,12 @@ $(info Compiler creates $(COMPILETARGET) binaries)
63 63
64# OS X specifics. Needs to consider cross compiling for Windows. 64# OS X specifics. Needs to consider cross compiling for Windows.
65ifeq ($(findstring APPLE,$(CPPDEFINES)),APPLE) 65ifeq ($(findstring APPLE,$(CPPDEFINES)),APPLE)
66# when building libs for OS X build for both i386 and ppc at the same time. 66# When building for 10.4+ we need to use gcc. Otherwise clang is used, so use
67# that to determine if we need to set arch and isysroot.
68ifeq ($(findstring __clang__,$(CPPDEFINES)),__clang__)
69CFLAGS += -mmacosx-version-min=10.5
70else
71# when building libs for OS X 10.4+ build for both i386 and ppc at the same time.
67# This creates fat objects, and ar can only create the archive but not operate 72# This creates fat objects, and ar can only create the archive but not operate
68# on it. As a result the ar call must NOT use the u (update) flag. 73# on it. As a result the ar call must NOT use the u (update) flag.
69ARCHFLAGS += -arch ppc -arch i386 74ARCHFLAGS += -arch ppc -arch i386
@@ -73,6 +78,7 @@ CC = gcc-4.0
73CFLAGS += -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 78CFLAGS += -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4
74NATIVECC = gcc-4.0 79NATIVECC = gcc-4.0
75endif 80endif
81endif
76WINDRES = windres 82WINDRES = windres
77 83
78BUILD_DIR ?= $(TARGET_DIR)build$(COMPILETARGET) 84BUILD_DIR ?= $(TARGET_DIR)build$(COMPILETARGET)
diff --git a/tools/rbspeex/Makefile b/tools/rbspeex/Makefile
index 785a99239a..89e21f8022 100644
--- a/tools/rbspeex/Makefile
+++ b/tools/rbspeex/Makefile
@@ -35,15 +35,21 @@ COMPILETARGET = mingw
35else 35else
36# OS X specifics. Needs to consider cross compiling for Windows. 36# OS X specifics. Needs to consider cross compiling for Windows.
37ifeq ($(findstring APPLE,$(CPPDEFINES)),APPLE) 37ifeq ($(findstring APPLE,$(CPPDEFINES)),APPLE)
38# when building libs for OS X build for both i386 and ppc at the same time. 38# When building for 10.4+ we need to use gcc. Otherwise clang is used, so use
39# that to determine if we need to set arch and isysroot.
40ifeq ($(findstring __clang__,$(CPPDEFINES)),__clang__)
41CFLAGS += -mmacosx-version-min=10.5
42else
43# when building libs for OS X 10.4+ build for both i386 and ppc at the same time.
39# This creates fat objects, and ar can only create the archive but not operate 44# This creates fat objects, and ar can only create the archive but not operate
40# on it. As a result the ar call must NOT use the u (update) flag. 45# on it. As a result the ar call must NOT use the u (update) flag.
41ARCHFLAGS = -arch ppc -arch i386 46ARCHFLAGS += -arch ppc -arch i386
42# building against SDK 10.4 is not compatible with gcc-4.2 (default on newer Xcode) 47# building against SDK 10.4 is not compatible with gcc-4.2 (default on newer Xcode)
43# might need adjustment for older Xcode. 48# might need adjustment for older Xcode.
44CC ?= gcc-4.0 49CC = gcc-4.0
45CFLAGS += -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 50CFLAGS += -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4
46NATIVECC ?= gcc-4.0 51NATIVECC ?= gcc-4.0
52endif
47COMPILETARGET = darwin 53COMPILETARGET = darwin
48else 54else
49COMPILETARGET = posix 55COMPILETARGET = posix
diff --git a/tools/ucl/src/Makefile b/tools/ucl/src/Makefile
index ca29d7c8a8..a741f1ee8c 100644
--- a/tools/ucl/src/Makefile
+++ b/tools/ucl/src/Makefile
@@ -32,15 +32,21 @@ COMPILETARGET = mingw
32else 32else
33# OS X specifics. Needs to consider cross compiling for Windows. 33# OS X specifics. Needs to consider cross compiling for Windows.
34ifeq ($(findstring APPLE,$(CPPDEFINES)),APPLE) 34ifeq ($(findstring APPLE,$(CPPDEFINES)),APPLE)
35# when building libs for OS X build for both i386 and ppc at the same time. 35# When building for 10.4+ we need to use gcc. Otherwise clang is used, so use
36# that to determine if we need to set arch and isysroot.
37ifeq ($(findstring __clang__,$(CPPDEFINES)),__clang__)
38CFLAGS += -mmacosx-version-min=10.5
39else
40# when building libs for OS X 10.4+ build for both i386 and ppc at the same time.
36# This creates fat objects, and ar can only create the archive but not operate 41# This creates fat objects, and ar can only create the archive but not operate
37# on it. As a result the ar call must NOT use the u (update) flag. 42# on it. As a result the ar call must NOT use the u (update) flag.
38ARCHFLAGS = -arch ppc -arch i386 43ARCHFLAGS += -arch ppc -arch i386
39# building against SDK 10.4 is not compatible with gcc-4.2 (default on newer Xcode) 44# building against SDK 10.4 is not compatible with gcc-4.2 (default on newer Xcode)
40# might need adjustment for older Xcode. 45# might need adjustment for older Xcode.
41CC ?= gcc-4.0 46CC = gcc-4.0
42CFLAGS += -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4 47CFLAGS += -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4
43NATIVECC ?= gcc-4.0 48NATIVECC ?= gcc-4.0
49endif
44COMPILETARGET = darwin 50COMPILETARGET = darwin
45else 51else
46COMPILETARGET = posix 52COMPILETARGET = posix