summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2019-06-30 13:29:52 +0200
committerFearlessTobi <thm.frey@gmail.com>2020-01-19 12:52:09 +0100
commitf98cd210abb40e487b30952db25c97e28726dbb4 (patch)
treecfdbfd5909003102a58c33d157e6a4cf635e1919 /src
parentMerge pull request #3317 from ReinUsesLisp/gl-decomp-cc-decomp (diff)
downloadyuzu-f98cd210abb40e487b30952db25c97e28726dbb4.tar
yuzu-f98cd210abb40e487b30952db25c97e28726dbb4.tar.gz
yuzu-f98cd210abb40e487b30952db25c97e28726dbb4.tar.bz2
yuzu-f98cd210abb40e487b30952db25c97e28726dbb4.tar.lz
yuzu-f98cd210abb40e487b30952db25c97e28726dbb4.tar.xz
yuzu-f98cd210abb40e487b30952db25c97e28726dbb4.tar.zst
yuzu-f98cd210abb40e487b30952db25c97e28726dbb4.zip
Diffstat (limited to 'src')
-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()
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)