mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-10 03:20:04 +08:00
[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:
@@ -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
|
||||
# ----------------------------------------------------------------------------
|
||||
|
Reference in New Issue
Block a user