fix link error

This commit is contained in:
halx99 2020-02-02 21:53:18 +08:00
parent 9632461bea
commit 6f4b1f4d9e
1 changed files with 1 additions and 0 deletions

View File

@ -123,6 +123,7 @@ else()
add_library(${APP_NAME} SHARED ${all_code_files})
add_subdirectory(${COCOS2DX_ROOT_PATH}/cocos/platform/android ${ENGINE_BINARY_PATH}/cocos/platform)
target_link_libraries(${APP_NAME} -Wl,--whole-archive cpp_android_spec -Wl,--no-whole-archive)
target_link_libraries(${APP_NAME} -Wl,--whole-archive ext_ogg ext_vorbis ext_ssl ext_crypto -Wl,--no-whole-archive)
endif()
target_link_libraries(${APP_NAME} cocos2d)