$NetBSD: patch-cmake_FindFFmpeg.cmake,v 1.3 2024/06/26 16:41:00 adam Exp $ * --exclude-libs is not available on Solaris/Illumos, according to the git commit messages for this file about exlude-libs it was added relocation problems on Linux so only use it on Linux --- cmake/FindFFmpeg.cmake.orig 2024-06-08 01:28:28.000000000 +0000 +++ cmake/FindFFmpeg.cmake @@ -311,7 +311,7 @@ endfunction() __ffmpeg_internal_set_dependencies(${_component}) target_link_libraries(FFmpeg::${_lowerComponent} INTERFACE "${${_component}_LIBRARY_NAME}") - if (UNIX AND NOT APPLE) + if (LINUX) target_link_options(FFmpeg::${_lowerComponent} INTERFACE "-Wl,--exclude-libs=lib${_lowerComponent}") endif () endif()