Changeset 4828
- Timestamp:
- Apr 30, 2014 2:37:00 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/configure-android
r4704 r4828 9 9 echo "where:" 10 10 echo " --use-ndk-cflags Optional parameter to use the same compilation flags" 11 echo " as the one used by ndk-build" 11 echo " as the one used by ndk-build. Android NDK r9 or later" 12 echo " is required when using this option." 12 13 echo " OPTIONS Other options that will be passed directly to" 13 14 echo " ./aconfigure script. Run ./aconfigure --help" … … 64 65 IGNORE_CFLAGS="\-M\|\-f*stack\|\-f*alias" 65 66 fi 66 for i in `${ANDROID_NDK_ROOT}/ndk-build -n -C ${ANDROID_NDK_ROOT}/samples/hello-jni NDK_ LOG=1 APP_PLATFORM=${APP_PLATFORM} APP_ABI=${TARGET_ABI}`; do67 for i in `${ANDROID_NDK_ROOT}/ndk-build -n -C ${ANDROID_NDK_ROOT}/samples/hello-jni NDK_TOOLCHAIN_VERSION=4.8 NDK_LOG=1 APP_PLATFORM=${APP_PLATFORM} APP_ABI=${TARGET_ABI}`; do 67 68 if test "x${NDK_CXX}" != "x" -a "$i" = "-o"; then break; fi 68 69 … … 100 101 101 102 export LDFLAGS="${LDFLAGS} -nostdlib -L${ANDROID_SYSROOT}/usr/lib/" 102 export LIBS="${LIBS} -lc -lgcc "103 export LIBS="${LIBS} -lc -lgcc -ldl" 103 104 export CFLAGS="${NDK_CFLAGS} ${CFLAGS}" 104 105 export CPPFLAGS="${CFLAGS} -fexceptions -frtti" … … 138 139 # gnustl 139 140 STDCPP_TC_VER=`ls -d ${ANDROID_NDK_ROOT}/sources/cxx-stl/gnu-libstdc++/[0-9]* | sort -gr | head -1` 140 STDCPP_CFLAGS="-I${STDCPP_TC_VER}/include -I${STDCPP_TC_VER}/libs/ armeabi/include"141 STDCPP_CFLAGS="-I${STDCPP_TC_VER}/include -I${STDCPP_TC_VER}/libs/${TARGET_ABI}/include" 141 142 STDCPP_LIBS="${ANDROID_SYSROOT}/usr/lib/crtbegin_so.o -lgnustl_static" 142 STDCPP_LDFLAGS="-L${STDCPP_TC_VER}/libs/ armeabi"143 STDCPP_LDFLAGS="-L${STDCPP_TC_VER}/libs/${TARGET_ABI}/" 143 144 144 145 # stlport 145 146 #STDCPP_CFLAGS="-I${ANDROID_NDK_ROOT}/sources/cxx-stl/stlport/stlport" 146 147 #STDCPP_LIBS="${ANDROID_SYSROOT}/usr/lib/crtbegin_so.o -lstlport_static -ldl" 147 #STDCPP_LDFLAGS="-L${ANDROID_NDK_ROOT}/sources/cxx-stl/stlport/libs/ armeabi"148 #STDCPP_LDFLAGS="-L${ANDROID_NDK_ROOT}/sources/cxx-stl/stlport/libs/${TARGET_ABI}" 148 149 149 150 export CFLAGS="${CFLAGS} ${STDCPP_CFLAGS}"
Note: See TracChangeset
for help on using the changeset viewer.