[Asterisk-cvs] asterisk-addons/format_mp3 Makefile,1.3,1.4

markster at lists.digium.com markster at lists.digium.com
Thu Jun 2 13:17:10 CDT 2005


Update of /usr/cvsroot/asterisk-addons/format_mp3
In directory mongoose.digium.com:/tmp/cvs-serv2067/format_mp3

Modified Files:
	Makefile 
Log Message:
Fix format mp3 build on mac os x (bug #4426)


Index: Makefile
===================================================================
RCS file: /usr/cvsroot/asterisk-addons/format_mp3/Makefile,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- Makefile	30 Jan 2005 17:40:20 -0000	1.3
+++ Makefile	2 Jun 2005 17:20:15 -0000	1.4
@@ -28,6 +28,15 @@
 
 endif
 
+ifeq (${OSARCH},Darwin)
+SOLINK=-dynamic -bundle -undefined suppress -force_flat_namespace
+else
+SOLINK=-shared -Xlinker -x
+endif
+ifeq (${OSARCH},SunOS)
+SOLINK=-shared -fpic -L$(CROSS_COMPILE_TARGET)/usr/local/ssl/lib
+endif
+
 ifeq (${OSARCH},FreeBSD)
 OSVERSION=$(shell make -V OSVERSION -f /usr/share/mk/bsd.port.subdir.mk)
 CFLAGS+=$(if ${OSVERSION}<500016,-D_THREAD_SAFE)
@@ -55,7 +64,7 @@
 
 
 format_mp3.so: $(MP3OBJS)
-	$(CC) $(CFLAGS) -shared -Xlinker -x -o $@ $(MP3OBJS)
+	$(CC) $(CFLAGS) $(SOLINK) -o $@ $(MP3OBJS)
 
 all: $(MODS)
 




More information about the svn-commits mailing list