diff options
author | Benny Prijono <bennylp@teluu.com> | 2012-03-08 07:44:41 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2012-03-08 07:44:41 +0000 |
commit | f748efba1a534ad0183a758ab97d4463f2d0c4fb (patch) | |
tree | 2f3603b0ef17a6e4bc832cfd3d65b49dbf1eda1f /third_party | |
parent | d2a58207a17c6ab783b9d03261dcb570211a8263 (diff) |
Re #1462: libresample as shared library support on Mac OS X
git-svn-id: http://svn.pjsip.org/repos/pjproject/branches/1.x@3968 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/build/resample/Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/third_party/build/resample/Makefile b/third_party/build/resample/Makefile index f4780b54..2deb8732 100644 --- a/third_party/build/resample/Makefile +++ b/third_party/build/resample/Makefile @@ -21,7 +21,7 @@ export RESAMPLE_SRCDIR = ../../resample/src export RESAMPLE_OBJS = resamplesubs.o export RESAMPLE_CFLAGS = $(_CFLAGS) -SHLIB_NAME := libresample.so +SHLIB_NAME := libresample.$(SHLIB_SUFFIX) export RESAMPLE_SHLIB := ../../lib/$(SHLIB_NAME).$(PJ_VERSION_MAJOR) export RESAMPLE_LIB := ../../lib/libresample-$(TARGET_NAME)$(LIBEXT) @@ -33,10 +33,13 @@ export CC_OUT CC AR RANLIB HOST_MV HOST_RM HOST_RMDIR HOST_MKDIR OBJEXT LD LDOUT # ifeq ($(PJ_RESAMPLE_DLL),1) TARGETS := ../../lib/$(SHLIB_NAME) -SONAME_OPT := -Wl,-soname,$(SHLIB_NAME).$(PJ_VERSION_MAJOR) -#SONAME_OPT := +ifeq ($(SHLIB_SUFFIX),so) +SHLIB_OPT := -Wl,-soname,$(SHLIB_NAME).$(PJ_VERSION_MAJOR) +else +SHLIB_OPT := +endif export RESAMPLE_CFLAGS := -fPIC $(RESAMPLE_CFLAGS) -export RESAMPLE_LDFLAGS := -shared $(SONAME_OPT) $(RESAMPLE_LDFLAGS) +export RESAMPLE_LDFLAGS := -shared $(SHLIB_OPT) $(RESAMPLE_LDFLAGS) else TARGETS := libresample endif |