[asterisk-dev] Building trunk on OS/X SNow leopard

Olle E. Johansson oej at edvina.net
Wed Oct 21 15:28:02 CDT 2009

After upgrading to Snow Leopard (without installing Rosetta) my  
Asterisk stopped compiling. After a bit of googling I found the  

This works for me, I don't want to commit it since it might break  
other OS/X, the old 32-bit stuff especially. Someone propably needs to  
check what's going on,
someone that understands build systems and compilers and stuff.

I don't like the way I added an object file to ASTLDFLAGS and SOLINK,  
but it seems to do the trick.


Run configure with:

./configure --host=x86_64-darwin

Change Makefile:

NOISY_BUILD was just for debugging, but did not work anyway...

Index: Makefile
--- Makefile	(revision 225240)
+++ Makefile	(arbetskopia)
@@ -111,7 +111,7 @@

  #Uncomment this to see all build commands instead of 'quiet' output

  space:=$(empty) $(empty)
@@ -305,7 +305,8 @@

  ifneq ($(findstring darwin,$(OSARCH)),)
-  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/ 
+  ASTLDFLAGS= /usr/lib/bundle1.o -L/usr/local/lib
  # These are used for all but Darwin

More information about the asterisk-dev mailing list