--- src/Makefile.orig 2012-02-26 11:34:00.000000000 -0800 +++ src/Makefile 2014-09-17 06:28:58.000000000 -0700 @@ -21,7 +21,7 @@ endif LIBNAME = libdlna -LIBNAME_SHARED = ${LIBNAME}.so +LIBNAME_SHARED = ${LIBNAME}.dylib LIBNAME_STATIC = ${LIBNAME}.a LIBNAME_VERSION = $(LIBNAME_SHARED).$(VERSION) LIBNAME_MAJOR = $(LIBNAME_SHARED).$(shell echo $(VERSION) | cut -f1 -d.) @@ -97,8 +97,7 @@ @echo "#############################################" lib_shared: lib_shared_info_pre $(LOBJS) lib_shared_info_post - $(CC) -shared -Wl,-soname,$(LIBNAME_MAJOR) $(LOBJS) \ - $(LDFLAGS) $(EXTRALIBS) -o $(LIBNAME_VERSION) + $(CC) -dynamiclib -install_name $(PREFIX)/lib/$(LIBNAME_SHARED) $(LOBJS) $(LDFLAGS) $(EXTRALIBS) -o $(LIBNAME_VERSION) -compatibility_version $(VERSION) -current_version $(VERSION) $(LN) -sf $(LIBNAME_VERSION) $(LIBNAME_MAJOR) $(LN) -sf $(LIBNAME_MAJOR) $(LIBNAME_SHARED) @@ -111,7 +110,7 @@ ( find -name '*.[chS]' -print ) | xargs ctags -a; clean: - -$(RM) -f *.o *.lo *.a *.so* + -$(RM) -f *.o *.lo *.a *.dylib* -$(RM) -f .depend install_static: lib_static