mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-30 06:43:28 +01:00
FreeBSD static linking fixes
This commit is contained in:
parent
566d194c41
commit
5a3ce8a7dc
@ -52,7 +52,7 @@ endif()
|
|||||||
# set(BSDI TRUE)
|
# set(BSDI TRUE)
|
||||||
|
|
||||||
function(set_static_flags)
|
function(set_static_flags)
|
||||||
if (NOT APPLE)
|
if (NOT APPLE AND NOT FREEBSD)
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++")
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++")
|
||||||
endif()
|
endif()
|
||||||
endfunction(set_static_flags)
|
endfunction(set_static_flags)
|
||||||
@ -135,7 +135,7 @@ else()
|
|||||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${DEBUG_FLAGS}")
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${DEBUG_FLAGS}")
|
||||||
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} ${RELEASE_FLAGS}")
|
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} ${RELEASE_FLAGS}")
|
||||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${RELEASE_FLAGS}")
|
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${RELEASE_FLAGS}")
|
||||||
if(STATIC AND NOT APPLE)
|
if(STATIC AND NOT APPLE AND NOT FREEBSD)
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++")
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libgcc -static-libstdc++")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
@ -151,7 +151,7 @@ endif()
|
|||||||
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
|
include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
|
||||||
if(MINGW)
|
if(MINGW)
|
||||||
set(Boost_LIBRARIES "${Boost_LIBRARIES};ws2_32;mswsock")
|
set(Boost_LIBRARIES "${Boost_LIBRARIES};ws2_32;mswsock")
|
||||||
elseif(APPLE)
|
elseif(APPLE OR FREEBSD)
|
||||||
set(Boost_LIBRARIES "${Boost_LIBRARIES}")
|
set(Boost_LIBRARIES "${Boost_LIBRARIES}")
|
||||||
elseif(NOT MSVC)
|
elseif(NOT MSVC)
|
||||||
set(Boost_LIBRARIES "${Boost_LIBRARIES};rt;pthread")
|
set(Boost_LIBRARIES "${Boost_LIBRARIES};rt;pthread")
|
||||||
|
Loading…
Reference in New Issue
Block a user