mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	Merge pull request #5037 from leoetlino/thin-archives
CMake: Create thin archives on Linux
This commit is contained in:
		
						commit
						01686f78fe
					
				
					 1 changed files with 9 additions and 0 deletions
				
			
		|  | @ -80,6 +80,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) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue