mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-24 18:23:26 -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)
|
if(NOT DEFINED CMAKE_EXE_LINKER_FLAGS_INIT)
|
||||||
set(CMAKE_EXE_LINKER_FLAGS_INIT "@LDFLAGS@")
|
set(CMAKE_EXE_LINKER_FLAGS_INIT "@LDFLAGS@")
|
||||||
endif()
|
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)
|
if(NOT DEFINED CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO_INIT)
|
||||||
set(CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO_INIT "@LDFLAGS_RELEASE@")
|
set(CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO_INIT "@LDFLAGS_RELEASE@")
|
||||||
endif()
|
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)
|
if(NOT DEFINED CMAKE_EXE_LINKER_FLAGS_DEBUG_INIT)
|
||||||
set(CMAKE_EXE_LINKER_FLAGS_DEBUG_INIT "@LDFLAGS_DEBUG@")
|
set(CMAKE_EXE_LINKER_FLAGS_DEBUG_INIT "@LDFLAGS_DEBUG@")
|
||||||
endif()
|
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_AR "@AR@")
|
||||||
set(CMAKE_RANLIB "@RANLIB@")
|
set(CMAKE_RANLIB "@RANLIB@")
|
||||||
|
|
Loading…
Add table
Reference in a new issue