mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-09 11:27:28 -03:00
build: Set shared linker flags in toolchain file
These are required when cross-compiling shared libraries such as the kernel library.
This commit is contained in:
parent
efdb49afb9
commit
a8e04704f9
1 changed files with 9 additions and 0 deletions
|
@ -55,12 +55,21 @@ set(DEPENDS_COMPILE_DEFINITIONS_DEBUG @CPPFLAGS_DEBUG@)
|
|||
if(NOT DEFINED CMAKE_EXE_LINKER_FLAGS_INIT)
|
||||
set(CMAKE_EXE_LINKER_FLAGS_INIT "@LDFLAGS@")
|
||||
endif()
|
||||
if(NOT DEFINED CMAKE_SHARED_LINKER_FLAGS_INIT)
|
||||
set(CMAKE_SHARED_LINKER_FLAGS_INIT "@LDFLAGS@")
|
||||
endif()
|
||||
if(NOT DEFINED CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO_INIT)
|
||||
set(CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO_INIT "@LDFLAGS_RELEASE@")
|
||||
endif()
|
||||
if(NOT DEFINED CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO_INIT)
|
||||
set(CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO_INIT "@LDFLAGS_RELEASE@")
|
||||
endif()
|
||||
if(NOT DEFINED CMAKE_EXE_LINKER_FLAGS_DEBUG_INIT)
|
||||
set(CMAKE_EXE_LINKER_FLAGS_DEBUG_INIT "@LDFLAGS_DEBUG@")
|
||||
endif()
|
||||
if(NOT DEFINED CMAKE_SHARED_LINKER_FLAGS_DEBUG_INIT)
|
||||
set(CMAKE_SHARED_LINKER_FLAGS_DEBUG_INIT "@LDFLAGS_DEBUG@")
|
||||
endif()
|
||||
|
||||
set(CMAKE_AR "@AR@")
|
||||
set(CMAKE_RANLIB "@RANLIB@")
|
||||
|
|
Loading…
Reference in a new issue