mirror of
				https://github.com/gnss-sdr/gnss-sdr
				synced 2025-10-30 23:03:05 +00:00 
			
		
		
		
	Allow large files in 32 bit builds
try to fix https://lintian.debian.org/tags/binary-file-built-without-LFS-support.html
This commit is contained in:
		| @@ -271,6 +271,14 @@ set(CMAKE_BUILD_TYPE ${CMAKE_BUILD_TYPE} CACHE STRING "") | ||||
| # Append -O2 optimization flag for Debug builds | ||||
| set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O2") | ||||
|  | ||||
| # allow 'large' files in 32 bit builds | ||||
| if(UNIX) | ||||
|     add_definitions( -D_LARGEFILE_SOURCE | ||||
|                      -D_FILE_OFFSET_BITS=64 | ||||
|                      -D_LARGE_FILES | ||||
|                    ) | ||||
| endif(UNIX) | ||||
|  | ||||
|  | ||||
|  | ||||
| ################################################################################ | ||||
| @@ -331,7 +339,6 @@ if(OS_IS_LINUX) | ||||
| endif(OS_IS_LINUX) | ||||
|  | ||||
|  | ||||
|  | ||||
| ################################################################################ | ||||
| # Googletest - https://github.com/google/googletest | ||||
| ################################################################################ | ||||
|   | ||||
| @@ -76,6 +76,14 @@ if(MSVC) | ||||
|     add_compile_options(/wo4838) | ||||
| endif(MSVC) | ||||
|  | ||||
| # allow 'large' files in 32 bit builds | ||||
| if(UNIX) | ||||
|     add_definitions( -D_LARGEFILE_SOURCE | ||||
|                      -D_FILE_OFFSET_BITS=64 | ||||
|                      -D_LARGE_FILES | ||||
|                    ) | ||||
| endif(UNIX) | ||||
|  | ||||
| ######################################################################## | ||||
| # Dependencies setup | ||||
| ######################################################################## | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Carles Fernandez
					Carles Fernandez