Skip to content

Commit 8bbc985

Browse files
committed
CMake: fix more linking errors in dynamic mode
1 parent 254876b commit 8bbc985

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

CMakeLists.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,14 @@ if(LINUX)
11691169
target_link_libraries(libfastfetch
11701170
PRIVATE "m"
11711171
)
1172+
1173+
if(ENABLE_DIRECTX_HEADERS)
1174+
if(NOT BINARY_LINK_TYPE STREQUAL "dlopen")
1175+
target_link_libraries(libfastfetch
1176+
PRIVATE "/usr/lib/wsl/lib/libdxcore.so"
1177+
)
1178+
endif()
1179+
endif()
11721180
elseif(APPLE)
11731181
target_link_libraries(libfastfetch
11741182
PRIVATE "-framework AVFoundation"

src/detection/gpu/gpu_mthreads.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ struct FFMtmlData
3030
MtmlSystem *sys;
3131
} mtmlData;
3232

33-
static void shutdownMtml()
33+
FF_MAYBE_UNUSED static void shutdownMtml(void)
3434
{
3535
mtmlData.ffmtmlLibraryShutDown(mtmlData.lib);
3636
}

0 commit comments

Comments
 (0)