mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-26 17:32:33 +00:00
Don't define stdc++ on FreeBSD
This commit is contained in:
parent
53e18cafdf
commit
b73bed2992
1 changed files with 1 additions and 1 deletions
|
@ -513,7 +513,7 @@ else()
|
||||||
# There is a clang bug that does not allow to compile code that uses AES-NI intrinsics if -flto is enabled, so explicitly disable
|
# There is a clang bug that does not allow to compile code that uses AES-NI intrinsics if -flto is enabled, so explicitly disable
|
||||||
set(USE_LTO false)
|
set(USE_LTO false)
|
||||||
# explicitly define stdlib for older versions of clang
|
# explicitly define stdlib for older versions of clang
|
||||||
if(CMAKE_C_COMPILER_VERSION VERSION_LESS 3.7)
|
if(CMAKE_C_COMPILER_VERSION VERSION_LESS 3.7 AND NOT FREEBSD)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libstdc++")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libstdc++")
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libstdc++")
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stdlib=libstdc++")
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in a new issue