Do not pass linker flags for static libraries.
Static libraries get the linker flags from the user / pkg-config.
This commit is contained in:
		
							parent
							
								
									9b952ff48c
								
							
						
					
					
						commit
						0424ff0818
					
				| @ -209,8 +209,6 @@ else() | ||||
|   message(STATUS "Using unknown linker, not setting linker optimizations") | ||||
| endif () | ||||
| set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${LINKER_FLAGS}") | ||||
| # XXX(daniel-j-h): building libosrm.a invokes AR passing on the linker flags, but AR does not understand them | ||||
| #set(CMAKE_STATIC_LINKER_FLAGS "${CMAKE_STATIC_LINKER_FLAGS} ${LINKER_FLAGS}") | ||||
| set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${LINKER_FLAGS}") | ||||
| set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${LINKER_FLAGS}") | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user