1
0
Fork 0
forked from lthn/blockchain

an attempt to fil gcc linking (prior to gcc 9, the std::filesystem library required explicit linking)

This commit is contained in:
sowle 2025-07-10 04:00:56 +03:00
parent 87cd247eb5
commit 94b9741976
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -186,7 +186,7 @@ else()
if (CLANG)
set(LLVM_USE_LINKER "gold")
else()
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=gold")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=gold -lstdc++fs")
endif()
endif()
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" AND NOT (CMAKE_C_COMPILER_VERSION VERSION_LESS 4.8))