From efbbd54a84f64cb23409e02057ed2d025a3e6a3c Mon Sep 17 00:00:00 2001 From: Neo-Desktop <321592+Neo-Desktop@users.noreply.github.com> Date: Sun, 29 Nov 2026 14:02:50 +0000 Subject: [PATCH] Link libmedia and libtranslation on Haiku The Haiku layer of clang-retro MFC now plays and records sound with the Media Kit (BSoundPlayer, BMediaRecorder) and reads images with the Translation Kit. The Haiku build failed to link without these two libraries. libmfc's own CMake package links the same libraries. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01B82eRSTXLQB5LNVgAJbEoU Signed-off-by: Neo-Desktop <321592+Neo-Desktop@users.noreply.github.com> --- winport/CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/winport/CMakeLists.txt b/winport/CMakeLists.txt index cb0e80a..0561de6 100644 --- a/winport/CMakeLists.txt +++ b/winport/CMakeLists.txt @@ -138,10 +138,11 @@ elseif(HAIKU) # (the USB devices for Look for a modem, from the USB Kit: # windows/src/ports_haiku.cpp, with Haiku's headers only) target_sources(dmodem-win32 PRIVATE "${_win}/src/ports_haiku.cpp") - # (libbe: the Interface Kit; libdevice: the USB Kit; libnetwork: the - # sockets; libbsd: dl_iterate_phdr. libroot has the rest, dlopen and - # the threads too.) - target_link_libraries(dmodem-win32 PRIVATE be device network bsd) + # (libbe: the Interface Kit; libdevice: the USB Kit; libmedia: the + # sound of the layer (BSoundPlayer, BMediaRecorder); libtranslation: + # the images of the layer; libnetwork: the sockets; libbsd: + # dl_iterate_phdr. libroot has the rest, dlopen and the threads too.) + target_link_libraries(dmodem-win32 PRIVATE be device media translation network bsd) else() target_link_libraries(dmodem-win32 PRIVATE dl pthread) endif()