From 905d4249390b66dbbd762861452fe17d254b5617 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 14 Dec 2005 16:41:20 +0000 Subject: [PATCH] blah git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@148 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/mod_exosip/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/mod/mod_exosip/Makefile b/src/mod/mod_exosip/Makefile index 92356a29c6..91efe15520 100644 --- a/src/mod/mod_exosip/Makefile +++ b/src/mod/mod_exosip/Makefile @@ -1,9 +1,17 @@ #CFLAGS += -I/usr/src/common/src LDFLAGS += -leXosip2 -ljrtp4c +OSARCH=$(shell uname -s) +ifeq ($(OSARCH),Darwin) + LINKER=g++ +else + LINKER=$(CC) +endif + + $(MOD).so: $(MOD).c $(CC) $(CFLAGS) -fPIC -c $(MOD).c -o $(MOD).o - $(CC) $(SOLINK) -o $(MOD).so $(MOD).o $(LDFLAGS) + $(LINKER) $(SOLINK) -o $(MOD).so $(MOD).o $(LDFLAGS) all: $(MOD).so