diff --git a/CMakeLists.txt b/CMakeLists.txt index 77649b817c515..bc6318b9ec711 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2942,6 +2942,7 @@ elseif(OGC) list(INSERT SDL_LIBS 0 "-lSDL2main") list(APPEND EXTRA_LIBS "fat") endif() + list(APPEND EXTRA_LDFLAGS "${OGC_ARCH_SETTINGS} ${OGC_LINKER_FLAGS} ${OGC_STANDARD_LIBRARIES}") endif() if(HAVE_VULKAN AND NOT SDL_LOADSO)