From 2f75b3ee76d365198e3324398fe68c6de04fa272 Mon Sep 17 00:00:00 2001 From: Alberto Mardegan Date: Wed, 31 Jan 2024 13:50:18 +0300 Subject: [PATCH] ogc: add libogc link flags to pkg-config file (#52) --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 77649b817c515..b4c0805fe0f69 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2942,6 +2942,11 @@ elseif(OGC) list(INSERT SDL_LIBS 0 "-lSDL2main") list(APPEND EXTRA_LIBS "fat") endif() + list(APPEND EXTRA_LDFLAGS "${OGC_ARCH_SETTINGS} ${OGC_LINKER_FLAGS}") + if(NINTENDO_WII) + list(APPEND EXTRA_LIBS "wiiuse;bte") + endif() + list(APPEND EXTRA_LIBS "ogc;m") endif() if(HAVE_VULKAN AND NOT SDL_LOADSO)