summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2020-01-22 19:48:15 -0500
committerGravatar GitHub2020-01-22 19:48:15 -0500
commit89b326e396729ae9188bc5906c758ed2fb010cc0 (patch)
treebcbb7857461ef13a15a20c34a7502486ba4dd1f9 /src
parentMerge pull request #3339 from Simek/dark-theme-update (diff)
parentCMake: Create thin archives on Linux (diff)
downloadyuzu-89b326e396729ae9188bc5906c758ed2fb010cc0.tar.gz
yuzu-89b326e396729ae9188bc5906c758ed2fb010cc0.tar.xz
yuzu-89b326e396729ae9188bc5906c758ed2fb010cc0.zip
Merge pull request #3324 from FearlessTobi/port-5037
Port citra-emu/citra#5037: "CMake: Create thin archives on Linux"
Diffstat (limited to '')
-rw-r--r--src/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f18239edb..9d0af02fd 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -77,6 +77,15 @@ else()
77 add_compile_options("-static") 77 add_compile_options("-static")
78 endif() 78 endif()
79 endif() 79 endif()
80
81 if(CMAKE_SYSTEM_NAME STREQUAL "Linux" OR MINGW)
82 # GNU ar: Create thin archive files.
83 # Requires binutils-2.19 or later.
84 set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> qcTP <TARGET> <LINK_FLAGS> <OBJECTS>")
85 set(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> qTP <TARGET> <LINK_FLAGS> <OBJECTS>")
86 set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> qcTP <TARGET> <LINK_FLAGS> <OBJECTS>")
87 set(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> qTP <TARGET> <LINK_FLAGS> <OBJECTS>")
88 endif()
80endif() 89endif()
81 90
82add_subdirectory(common) 91add_subdirectory(common)