Ignore:
Timestamp:
Dec 19, 2019 2:57:20 AM (5 years ago)
Author:
nanang
Message:

Fix #2256: Mini refactored Android configure script:

  • added CXXFLAGS & LDFLAGS parsing (from ndk-build output), CXXFLAGS was set to CFLAGS.
  • updated WebRTC instruction set to use SSE2, was generic, for Android emulator (x86 ABI).
  • updated C++ library/STL backend to use c++_shared, somehow '-lc++_static' is ignored after the refactor, also the official NDK docs mentions that c++_static may cause undefined behavior for app with multiple shared libraries (note pjsua2 app may use other shared libraries).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/build/Makefile

    r5761 r6120  
    4747                   $(CC_INC)../../pjnath/include \ 
    4848                   $(CC_INC)../../pjmedia/include 
    49 export _CXXFLAGS:= $(_CFLAGS) $(CC_CXXFLAGS) $(OS_CXXFLAGS) $(M_CXXFLAGS) \ 
    50                    $(HOST_CXXFLAGS) $(CXXFLAGS) 
     49export _CXXFLAGS:= $(CC_CXXFLAGS) $(OS_CXXFLAGS) $(M_CXXFLAGS) \ 
     50                   $(HOST_CXXFLAGS) $(CXXFLAGS) $(CC_INC)../include \ 
     51                   $(CC_INC)../../pjlib/include \ 
     52                   $(CC_INC)../../pjlib-util/include \ 
     53                   $(CC_INC)../../pjnath/include \ 
     54                   $(CC_INC)../../pjmedia/include 
    5155export _LDFLAGS := $(APP_THIRD_PARTY_LIBS) \ 
    5256                   $(APP_THIRD_PARTY_EXT) \ 
     
    141145                           siptypes.o call.o presence.o media.o 
    142146export PJSUA2_LIB_CFLAGS += $(_CFLAGS) $(PJ_VIDEO_CFLAGS) 
    143 export PJSUA2_LIB_CXXFLAGS = $(_CXXFLAGS) $(PJSUA2_LIB_CFLAGS)  
     147export PJSUA2_LIB_CXXFLAGS = $(_CXXFLAGS) 
    144148export PJSUA2_LIB_LDFLAGS += $(PJSUA_LIB_LDLIB) \ 
    145149                             $(PJSIP_UA_LDLIB) \ 
Note: See TracChangeset for help on using the changeset viewer.