diff options
Diffstat (limited to 'rbutil/libtools.make')
-rw-r--r-- | rbutil/libtools.make | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rbutil/libtools.make b/rbutil/libtools.make index f9affdd9d4..dadc1a0545 100644 --- a/rbutil/libtools.make +++ b/rbutil/libtools.make | |||
@@ -75,6 +75,9 @@ ifeq ($(findstring APPLE,$(CPPDEFINES)),APPLE) | |||
75 | # that to determine if we need to set arch and isysroot. | 75 | # that to determine if we need to set arch and isysroot. |
76 | ifeq ($(findstring __clang__,$(CPPDEFINES)),__clang__) | 76 | ifeq ($(findstring __clang__,$(CPPDEFINES)),__clang__) |
77 | GCCFLAGS += -mmacosx-version-min=10.5 | 77 | GCCFLAGS += -mmacosx-version-min=10.5 |
78 | ifneq ($(ISYSROOT),) | ||
79 | GCCFLAGS += -isysroot $(ISYSROOT) | ||
80 | endif | ||
78 | else | 81 | else |
79 | # when building libs for OS X 10.4+ build for both i386 and ppc at the same time. | 82 | # when building libs for OS X 10.4+ build for both i386 and ppc at the same time. |
80 | # This creates fat objects, and ar can only create the archive but not operate | 83 | # This creates fat objects, and ar can only create the archive but not operate |