Skip to content

Commit 77ea81b

Browse files
committed
fix(build): reorder link libraries to fix undefined symbol on Linux
Move libwebrtc after the video codec factory libraries so the GNU linker sees their unresolved symbols before processing libwebrtc. Fixes undefined symbol _ZN6webrtc18SupportedVP9CodecsEb on Linux (macOS is unaffected due to its two-pass linker).
1 parent 0285d35 commit 77ea81b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,11 +416,11 @@ target_include_directories(${MODULE} PRIVATE
416416
target_link_libraries(${MODULE} PRIVATE
417417
${CMAKE_THREAD_LIBS_INIT}
418418
libpeerconnection
419-
libwebrtc
420419
libbuiltin_video_encoder_factory
421420
libbuiltin_video_decoder_factory
422421
librtc_internal_video_codecs
423422
librtc_simulcast_encoder_adapter
423+
libwebrtc
424424
${CMAKE_JS_LIB}
425425
)
426426

0 commit comments

Comments
 (0)