summaryrefslogtreecommitdiff
path: root/main/Makefile
diff options
context:
space:
mode:
authorDavid M. Lee <dlee@digium.com>2013-06-19 22:52:23 +0000
committerDavid M. Lee <dlee@digium.com>2013-06-19 22:52:23 +0000
commit6e6652518d43f26ac70ef6378b282464dcd62c50 (patch)
tree39d49fd8b128d76df86346be4c7dc7ca037b3935 /main/Makefile
parent954166ed2486e5a44367ee1bd4e29b7bc8c8cf13 (diff)
Fix build problem on OS X Mountain Lion (10.8)
For about forever, our build flags for OS X have been slightly off, but good enough to build and run. Apparently they aren't good enough any more. Previously, we would compile with macosx-version-min unset and link with it set. This combination, using GCC 4.8, on Mountain Lion, would create a bad executable ("Illegal Instruction: 4", or something like that) This patch consistently sets macosx-version-min for both compiling and linking, which makes everything happy enough to build and run. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@392279 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/Makefile')
-rw-r--r--main/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/Makefile b/main/Makefile
index f249a294a..294965365 100644
--- a/main/Makefile
+++ b/main/Makefile
@@ -56,7 +56,7 @@ endif
ifneq ($(findstring darwin,$(OSARCH)),)
AST_LIBS+=-lresolv
- ASTLINK=-Xlinker -macosx_version_min -Xlinker 10.6 -Xlinker -undefined -Xlinker dynamic_lookup -force_flat_namespace
+ ASTLINK=-mmacosx-version-min=10.6 -Xlinker -undefined -Xlinker dynamic_lookup -force_flat_namespace
ASTLINK+=/usr/lib/bundle1.o
else
# These are used for all but Darwin