diff --git a/src/mod/endpoints/mod_sofia/Makefile b/src/mod/endpoints/mod_sofia/Makefile index 89e9497a04..f659046363 100644 --- a/src/mod/endpoints/mod_sofia/Makefile +++ b/src/mod/endpoints/mod_sofia/Makefile @@ -1,9 +1,12 @@ +OS_ARCH := $(subst /,_,$(shell uname -s | sed /\ /s//_/)) VERSION = sofia-sip-1.12 TARBALL = sofia-sip-1.12.2.tar.gz CFLAGS += -I. -I$(PREFIX)/include/$(VERSION) LDFLAGS += -lsofia-sip-ua LINKER=$(CC) - +ifeq ($(OS_ARCH),Darwin) + LDFLAGS +=-framework CoreFoundation -framework SystemConfiguration +endif all: depends $(MODNAME).$(DYNAMIC_LIB_EXTEN) depends: