Skip to content

Commit 56c9ec1

Browse files
PatriceJiangminggo
authored andcommitted
add link flags (#20069)
1 parent 48e0d7d commit 56c9ec1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/lua-tests/project/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ else()
9898
add_subdirectory(${COCOS2DX_ROOT_PATH}/cocos/platform/android ${ENGINE_BINARY_PATH}/cocos/cpp-android)
9999
target_link_libraries(${APP_NAME} -Wl,--whole-archive cpp_android_spec -Wl,--no-whole-archive)
100100
add_subdirectory(${COCOS2DX_ROOT_PATH}/cocos/scripting/lua-bindings/proj.android ${ENGINE_BINARY_PATH}/cocos/lua-android)
101-
target_link_libraries(${APP_NAME} -Wl,--whole-archive lua_android_spec -Wl,--no-whole-archive)
101+
#add `-Wl,--no-warn-shared-textrel` to fix warning "shared library text segment is not shareable clang"
102+
target_link_libraries(${APP_NAME} -Wl,--whole-archive lua_android_spec -Wl,--no-whole-archive -Wl,--no-warn-shared-textrel)
102103
endif()
103104
target_link_libraries(${APP_NAME} luacocos2d)
104105
target_include_directories(${APP_NAME} PRIVATE Classes)

0 commit comments

Comments
 (0)