diff --git a/CMakeLists.txt b/CMakeLists.txt index 340f0a520..819e16402 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1169,6 +1169,14 @@ if(LINUX) target_link_libraries(libfastfetch PRIVATE "m" ) + + if(ENABLE_DIRECTX_HEADERS) + if(NOT BINARY_LINK_TYPE STREQUAL "dlopen") + target_link_libraries(libfastfetch + PRIVATE "/usr/lib/wsl/lib/libdxcore.so" + ) + endif() + endif() elseif(APPLE) target_link_libraries(libfastfetch PRIVATE "-framework AVFoundation" diff --git a/src/detection/gpu/gpu_mthreads.c b/src/detection/gpu/gpu_mthreads.c index 7af21c58f..80164320d 100644 --- a/src/detection/gpu/gpu_mthreads.c +++ b/src/detection/gpu/gpu_mthreads.c @@ -30,7 +30,7 @@ struct FFMtmlData MtmlSystem *sys; } mtmlData; -static void shutdownMtml() +FF_MAYBE_UNUSED static void shutdownMtml(void) { mtmlData.ffmtmlLibraryShutDown(mtmlData.lib); }