Merge pull request #4256 from MarcZX100/codex/fix-avplayer-test-unwind-2709

test(avplayer): link guest_avplayer with the shared runtime libraries
This commit is contained in:
Dean 2026-10-13 01:23:34 +13:00 committed by GitHub
commit df055db921
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -2,6 +2,9 @@ include(${CMAKE_CURRENT_SOURCE_DIR}/AvPlayerLibrary.cmake)
add_sce_avplayer_library(libSceAvPlayer)
if(BUILD_TESTING)
foreach(runtimeLinkFlag IN ITEMS -static-libgcc -static-libstdc++ -static)
string(REPLACE "${runtimeLinkFlag}" "" CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS}")
endforeach()
add_test_executable(guest_avplayer_tests ${LIBS_INCLUDE_DIR}/tests/GuestAvPlayer.cpp)
target_include_directories(guest_avplayer_tests PRIVATE ${LIBS_INCLUDE_DIR})
target_link_libraries(guest_avplayer_tests PRIVATE libSceAvPlayer libc)