diff options
author | bunnei <bunneidev@gmail.com> | 2020-01-23 01:48:15 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-23 01:48:15 +0100 |
commit | 89b326e396729ae9188bc5906c758ed2fb010cc0 (patch) | |
tree | bcbb7857461ef13a15a20c34a7502486ba4dd1f9 | |
parent | Merge pull request #3339 from Simek/dark-theme-update (diff) | |
parent | CMake: Create thin archives on Linux (diff) | |
download | yuzu-89b326e396729ae9188bc5906c758ed2fb010cc0.tar yuzu-89b326e396729ae9188bc5906c758ed2fb010cc0.tar.gz yuzu-89b326e396729ae9188bc5906c758ed2fb010cc0.tar.bz2 yuzu-89b326e396729ae9188bc5906c758ed2fb010cc0.tar.lz yuzu-89b326e396729ae9188bc5906c758ed2fb010cc0.tar.xz yuzu-89b326e396729ae9188bc5906c758ed2fb010cc0.tar.zst yuzu-89b326e396729ae9188bc5906c758ed2fb010cc0.zip |
-rw-r--r-- | src/CMakeLists.txt | 9 |
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() add_compile_options("-static") endif() endif() + + if(CMAKE_SYSTEM_NAME STREQUAL "Linux" OR MINGW) + # GNU ar: Create thin archive files. + # Requires binutils-2.19 or later. + set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> qcTP <TARGET> <LINK_FLAGS> <OBJECTS>") + set(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> qTP <TARGET> <LINK_FLAGS> <OBJECTS>") + set(CMAKE_CXX_ARCHIVE_CREATE "<CMAKE_AR> qcTP <TARGET> <LINK_FLAGS> <OBJECTS>") + set(CMAKE_CXX_ARCHIVE_APPEND "<CMAKE_AR> qTP <TARGET> <LINK_FLAGS> <OBJECTS>") + endif() endif() add_subdirectory(common) |