Ignore:
Timestamp:
Dec 13, 2013 9:07:53 AM (8 years ago)
Author:
nanang
Message:

Re #1716: Initial implementation of new Android app based on pjsua2+SWIG API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/pjsua2/configure-android

    r4594 r4691  
    8787  export CXX="${NDK_CXX}" 
    8888 
    89   export LDFLAGS="${LDFLAGS} -nostdlib -L${ANDROID_SYSROOT}/usr/lib/" 
    90   export LIBS="${LIBS} -lc -lgcc" 
    91   export CFLAGS="${CFLAGS} ${NDK_CFLAGS}" 
    92   export CPPFLAGS="${CFLAGS}" 
    93   export CXXFLAGS="${NDK_CXXFLAGS}" 
     89  export LDFLAGS="${LDFLAGS} -nostdlib -L${ANDROID_SYSROOT}/usr/lib/ -L${ANDROID_NDK_ROOT}/sources/cxx-stl/gnu-libstdc++/4.7/libs/armeabi" 
     90  export LIBS="${LIBS} -lgnustl_static -lc -lgcc ${ANDROID_SYSROOT}/usr/lib/crtbegin_so.o" 
     91  export CFLAGS="${CFLAGS} ${NDK_CFLAGS} -I${ANDROID_NDK_ROOT}/sources/cxx-stl/gnu-libstdc++/4.7/include -I${ANDROID_NDK_ROOT}/sources/cxx-stl/gnu-libstdc++/4.7/libs/armeabi/include" 
     92  export CPPFLAGS="${CFLAGS} -fexceptions -frtti" 
     93  export CXXFLAGS="${NDK_CXXFLAGS} -fexceptions -frtti" 
    9494 
    9595else 
     
    111111  export CXX="${ANDROID_TC}/bin/${TARGET_HOST}-g++" 
    112112 
    113   export LDFLAGS="${LDFLAGS} -nostdlib -L${ANDROID_SYSROOT}/usr/lib/" 
    114   export LIBS="${LIBS} -lc -lgcc" 
    115   export CFLAGS="${CFLAGS} -I${ANDROID_SYSROOT}/usr/include" 
    116   export CPPFLAGS="${CFLAGS}" 
    117   export CXXFLAGS="${CXXFLAGS} -shared --sysroot=${ANDROID_SYSROOT}" 
     113  export LDFLAGS="${LDFLAGS} -nostdlib -L${ANDROID_SYSROOT}/usr/lib/ -L${ANDROID_NDK_ROOT}/sources/cxx-stl/gnu-libstdc++/4.7/libs/armeabi" 
     114  export LIBS="${LIBS} -lgnustl_static -lc -lgcc ${ANDROID_SYSROOT}/usr/lib/crtbegin_so.o" 
     115  export CFLAGS="${CFLAGS} -I${ANDROID_SYSROOT}/usr/include -I${ANDROID_NDK_ROOT}/sources/cxx-stl/gnu-libstdc++/4.7/include -I${ANDROID_NDK_ROOT}/sources/cxx-stl/gnu-libstdc++/4.7/libs/armeabi/include" 
     116  export CPPFLAGS="${CFLAGS} -fexceptions -frtti" 
     117  export CXXFLAGS="${CXXFLAGS} -shared --sysroot=${ANDROID_SYSROOT} -fexceptions -frtti" 
    118118 
    119119fi 
Note: See TracChangeset for help on using the changeset viewer.