Ignore:
Timestamp:
Mar 8, 2012 7:44:41 AM (12 years ago)
Author:
bennylp
Message:

Re #1462: libresample as shared library support on Mac OS X

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/1.x/third_party/build/resample/Makefile

    r3967 r3968  
    2222export RESAMPLE_CFLAGS = $(_CFLAGS) 
    2323 
    24 SHLIB_NAME := libresample.so 
     24SHLIB_NAME := libresample.$(SHLIB_SUFFIX) 
    2525export RESAMPLE_SHLIB := ../../lib/$(SHLIB_NAME).$(PJ_VERSION_MAJOR) 
    2626export RESAMPLE_LIB := ../../lib/libresample-$(TARGET_NAME)$(LIBEXT) 
     
    3434ifeq ($(PJ_RESAMPLE_DLL),1) 
    3535TARGETS := ../../lib/$(SHLIB_NAME) 
    36 SONAME_OPT := -Wl,-soname,$(SHLIB_NAME).$(PJ_VERSION_MAJOR) 
    37 #SONAME_OPT :=  
     36ifeq ($(SHLIB_SUFFIX),so) 
     37SHLIB_OPT := -Wl,-soname,$(SHLIB_NAME).$(PJ_VERSION_MAJOR) 
     38else 
     39SHLIB_OPT :=  
     40endif 
    3841export RESAMPLE_CFLAGS := -fPIC $(RESAMPLE_CFLAGS) 
    39 export RESAMPLE_LDFLAGS := -shared $(SONAME_OPT) $(RESAMPLE_LDFLAGS) 
     42export RESAMPLE_LDFLAGS := -shared $(SHLIB_OPT) $(RESAMPLE_LDFLAGS) 
    4043else 
    4144TARGETS := libresample 
Note: See TracChangeset for help on using the changeset viewer.