summaryrefslogtreecommitdiffstats
path: root/rbutil/libtools.make
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2011-12-16 18:35:01 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2011-12-16 18:35:01 +0000
commitb056e027fc49305672a594916cc12e84c85872be (patch)
tree01fbf91cc2b37e70dfd1b691d6fc8dcffb7403eb /rbutil/libtools.make
parenta0b81bdbfc435bfd794a6b1b86c3378ed258c3df (diff)
downloadrockbox-b056e027fc49305672a594916cc12e84c85872be.tar.gz
rockbox-b056e027fc49305672a594916cc12e84c85872be.zip
ipodpatcher: convert to use libtools.make.
This allows building libipodpatcher, which will make it possible to stop building ipodpatcher files in Rockbox Utility directly. Move some OS X common values to libtools.make as well (might fix building libmkamsboot on OS X). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31324 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/libtools.make')
-rw-r--r--rbutil/libtools.make11
1 files changed, 11 insertions, 0 deletions
diff --git a/rbutil/libtools.make b/rbutil/libtools.make
index 2f69a5416c..a74e54eb78 100644
--- a/rbutil/libtools.make
+++ b/rbutil/libtools.make
@@ -44,6 +44,17 @@ endif
endif
endif
+NATIVECC = gcc
+CC = gcc
+ifeq ($(findstring Darwin,$(shell uname)),Darwin)
+# building against SDK 10.4 is not compatible with gcc-4.2 (default on newer Xcode)
+# might need adjustment for older Xcode.
+CC = gcc-4.0
+CFLAGS += -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4
+NATIVECC = gcc-4.0
+endif
+WINDRES = windres
+
ifndef BUILD_DIR
BUILD_DIR = $(TARGET_DIR)build
endif