[Asterisk-cvs] asterisk-addons Makefile,1.12,1.13
kpfleming at lists.digium.com
kpfleming at lists.digium.com
Tue Jun 21 11:26:27 CDT 2005
Update of /usr/cvsroot/asterisk-addons
In directory mongoose.digium.com:/tmp/cvs-serv6692
Modified Files:
Makefile
Log Message:
fix builds on Mac OS X properly
Index: Makefile
===================================================================
RCS file: /usr/cvsroot/asterisk-addons/Makefile,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- Makefile 21 Jun 2005 01:34:31 -0000 1.12
+++ Makefile 21 Jun 2005 15:27:15 -0000 1.13
@@ -39,6 +39,8 @@
MLFLAGS+=$(shell if [ -d /usr/local/lib/mysql ]; then echo "-L/usr/local/lib/mysql"; fi)
MLFLAGS+=$(shell if [ -d /opt/mysql/lib/mysql ]; then echo "-L/opt/mysql/lib/mysql"; fi)
+OSARCH=$(shell uname -s)
+
ifeq (${OSARCH},Darwin)
SOLINK=-dynamic -bundle -undefined suppress -force_flat_namespace
else
@@ -61,7 +63,7 @@
$(MAKE) -C format_mp3 clean
%.so : %.o
- $(CC) -shared -Xlinker -x -o $@ $<
+ $(CC) $(SOLINK) -o $@ $<
ifneq ($(wildcard .depend),)
include .depend
More information about the svn-commits
mailing list