[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
following:
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.
Cheers,
/O
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 @@
_ASTCFLAGS+=$(LIBXML2_INCLUDE)
#Uncomment this to see all build commands instead of 'quiet' output
-#NOISY_BUILD=yes
+NOISY_BUILD=yes
empty:=
space:=$(empty) $(empty)
@@ -305,7 +305,8 @@
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
More information about the asterisk-dev
mailing list