Adding compile time flags for Snow Leopard, Leopard and some other animals
authorOlle Johansson <oej@edvina.net>
Tue, 27 Oct 2009 21:03:22 +0000 (21:03 +0000)
committerOlle Johansson <oej@edvina.net>
Tue, 27 Oct 2009 21:03:22 +0000 (21:03 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@226184 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile

index 44d3080..dceb860 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -305,7 +305,8 @@ MOD_SUBDIRS_MENUSELECT_TREE:=$(MOD_SUBDIRS:%=%-menuselect-tree)
 
 ifneq ($(findstring darwin,$(OSARCH)),)
   _ASTCFLAGS+=-D__Darwin__
-  SOLINK=-bundle -Xlinker -macosx_version_min -Xlinker 10.4 -Xlinker -undefined -Xlinker dynamic_lookup -force_flat_namespace
+  SOLINK=-bundle -Xlinker -macosx_version_min -Xlinker 10.4 -Xlinker -undefined -Xlinker dynamic_lookup -force_flat_namespace /usr/lib/bundle1.o
+  _ASTLDFLAGS+= /usr/lib/bundle1.o -L/usr/local/lib
 else
 # These are used for all but Darwin
   SOLINK=-shared