[android]: revert crtbegin_dynamic and crtend_android object on Android

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@897 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
ChenHengming
2016-06-08 07:50:43 +00:00
parent 354ceb2e68
commit 0792547b10

View File

@@ -1299,6 +1299,14 @@ if( EXISTS "${__libstl}" OR EXISTS "${__libsupcxx}" )
endif()
endif()
# add crt object to executable link list for Android SDK build
# ----------------------------------------------------------------------------
set( ANDROID_CRT_BEGIN "${ANDROID_SYSROOT}/usr/lib/crtbegin_dynamic.o")
set( ANDROID_CRT_END "${ANDROID_SYSROOT}/usr/lib/crtend_android.o")
set( CMAKE_C_LINK_EXECUTABLE "${CMAKE_C_LINK_EXECUTABLE} ${ANDROID_CRT_BEGIN} ${ANDROID_CRT_END}" )
set( CMAKE_CXX_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECUTABLE} ${ANDROID_CRT_BEGIN} ${ANDROID_CRT_END}" )
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# add libgcc.a to executable link list
# ----------------------------------------------------------------------------