aboutsummaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
authorcrueter <crueter@eden-emu.dev>2026-01-20 18:31:28 +0100
committercrueter <crueter@eden-emu.dev>2026-01-20 18:31:28 +0100
commitf61f0a28c66d48ba8219053f44c22b92c8edce24 (patch)
tree16df8c65d0836aefc19e9db4897a64cbbfc6eb9d /src/CMakeLists.txt
parentcb26ea154c9eedc5fd8dae33a39cd86ca1d927ab (diff)
[cmake] Fix MinGW/arm64 build/runtime errors (#3352)
Mostly just jpeg being weird. Also, due to the way I've built it, we don't need all those system libs anymore because they are bundled into the Qt build. Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3352 Reviewed-by: DraVee <dravee@eden-emu.dev> Reviewed-by: Lizzie <lizzie@eden-emu.dev>
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index d8d9e10c9f..6cafe4882a 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,4 +1,4 @@
-# SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
+# SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
# SPDX-License-Identifier: GPL-3.0-or-later
# SPDX-FileCopyrightText: 2018 yuzu Emulator Project
# SPDX-License-Identifier: GPL-2.0-or-later
@@ -175,11 +175,10 @@ else()
if (YUZU_STATIC_BUILD AND NOT APPLE)
add_compile_options(-static)
- if (YUZU_STATIC_BUILD)
- # yuzu-cmd requires us to explicitly link libpthread, libgcc, and libstdc++ as static
- add_link_options(-static -lpthread)
- add_link_options(-static-libgcc -static-libstdc++)
- endif()
+
+ # yuzu-cmd requires us to explicitly link libpthread, libgcc, and libstdc++ as static
+ add_link_options(-Wl,-Bstatic -static -lpthread)
+ add_link_options(-static-libgcc -static-libstdc++)
endif()
if (MINGW)