mirror of
				https://git.libssh.org/projects/libssh.git
				synced 2025-11-03 21:53:14 +03:00 
			
		
		
		
	Remove --as-needed linker flag.
This commit is contained in:
		@@ -39,8 +39,10 @@ endif (WIN32)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIRS})
 | 
					set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIRS})
 | 
				
			||||||
check_include_file(openssl/aes.h HAVE_OPENSSL_AES_H)
 | 
					check_include_file(openssl/aes.h HAVE_OPENSSL_AES_H)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIRS})
 | 
					set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIRS})
 | 
				
			||||||
check_include_file(openssl/blowfish.h HAVE_OPENSSL_BLOWFISH_H)
 | 
					check_include_file(openssl/blowfish.h HAVE_OPENSSL_BLOWFISH_H)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIRS})
 | 
					set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIRS})
 | 
				
			||||||
check_include_file(openssl/des.h HAVE_OPENSSL_DES_H)
 | 
					check_include_file(openssl/des.h HAVE_OPENSSL_DES_H)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -75,6 +77,7 @@ if (UNIX)
 | 
				
			|||||||
  check_function_exists(cfmakeraw HAVE_CFMAKERAW)
 | 
					  check_function_exists(cfmakeraw HAVE_CFMAKERAW)
 | 
				
			||||||
  check_function_exists(regcomp HAVE_REGCOMP)
 | 
					  check_function_exists(regcomp HAVE_REGCOMP)
 | 
				
			||||||
endif (UNIX)
 | 
					endif (UNIX)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
set(LIBSSH_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} CACHE INTERNAL "libssh required system libraries")
 | 
					set(LIBSSH_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} CACHE INTERNAL "libssh required system libraries")
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# LIBRARIES
 | 
					# LIBRARIES
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -48,8 +48,6 @@ if (UNIX AND NOT WIN32)
 | 
				
			|||||||
      add_definitions(-D_FORTIFY_SOURCE=2)
 | 
					      add_definitions(-D_FORTIFY_SOURCE=2)
 | 
				
			||||||
    endif (WITH_FORTIFY_SOURCE)
 | 
					    endif (WITH_FORTIFY_SOURCE)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Set linker flags
 | 
					 | 
				
			||||||
    set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed")
 | 
					 | 
				
			||||||
  endif (CMAKE_COMPILER_IS_GNUCC)
 | 
					  endif (CMAKE_COMPILER_IS_GNUCC)
 | 
				
			||||||
endif (UNIX AND NOT WIN32)
 | 
					endif (UNIX AND NOT WIN32)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user