diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/rbspeex/Makefile | 3 | ||||
-rw-r--r-- | tools/ucl/src/Makefile | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tools/rbspeex/Makefile b/tools/rbspeex/Makefile index 231cdb5517..b33534695c 100644 --- a/tools/rbspeex/Makefile +++ b/tools/rbspeex/Makefile | |||
@@ -41,6 +41,9 @@ ifeq ($(findstring APPLE,$(CPPDEFINES)),APPLE) | |||
41 | # that to determine if we need to set arch and isysroot. | 41 | # that to determine if we need to set arch and isysroot. |
42 | ifeq ($(findstring __clang__,$(CPPDEFINES)),__clang__) | 42 | ifeq ($(findstring __clang__,$(CPPDEFINES)),__clang__) |
43 | CFLAGS += -mmacosx-version-min=10.5 | 43 | CFLAGS += -mmacosx-version-min=10.5 |
44 | ifneq ($(ISYSROOT),) | ||
45 | CFLAGS += -isysroot $(ISYSROOT) | ||
46 | endif | ||
44 | else | 47 | else |
45 | # when building libs for OS X 10.4+ build for both i386 and ppc at the same time. | 48 | # when building libs for OS X 10.4+ build for both i386 and ppc at the same time. |
46 | # This creates fat objects, and ar can only create the archive but not operate | 49 | # This creates fat objects, and ar can only create the archive but not operate |
diff --git a/tools/ucl/src/Makefile b/tools/ucl/src/Makefile index a741f1ee8c..14ba2c2b04 100644 --- a/tools/ucl/src/Makefile +++ b/tools/ucl/src/Makefile | |||
@@ -36,6 +36,9 @@ ifeq ($(findstring APPLE,$(CPPDEFINES)),APPLE) | |||
36 | # that to determine if we need to set arch and isysroot. | 36 | # that to determine if we need to set arch and isysroot. |
37 | ifeq ($(findstring __clang__,$(CPPDEFINES)),__clang__) | 37 | ifeq ($(findstring __clang__,$(CPPDEFINES)),__clang__) |
38 | CFLAGS += -mmacosx-version-min=10.5 | 38 | CFLAGS += -mmacosx-version-min=10.5 |
39 | ifneq ($(ISYSROOT),) | ||
40 | CFLAGS += -isysroot $(ISYSROOT) | ||
41 | endif | ||
39 | else | 42 | else |
40 | # when building libs for OS X 10.4+ build for both i386 and ppc at the same time. | 43 | # when building libs for OS X 10.4+ build for both i386 and ppc at the same time. |
41 | # 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 |