TinyORM
TinyORM copied to clipboard
Linker error when building with MinGW 11.2
When I build TinyORM with MinGW 11.2 i get the following linker error:
collect2.exe: fatal error: cannot find 'ld'
I can fix this error by removing or commenting line 160 in TinyCommon.cmake
: -fuse-ld=lld. The lld linker is not included in a normal MinGW distribution.
if(MINGW)
target_compile_options(${target} INTERFACE
$<$<CXX_COMPILER_ID:Clang,AppleClang>:-Wno-ignored-attributes>
)
target_link_options(${target} INTERFACE
$<$<CONFIG:Debug,RelWithDebInfo>:
LINKER:--dynamicbase,--high-entropy-va,--nxcompat
LINKER:--default-image-base-high>
# Use faster linker ( GNU ld linker doesn't work with the Clang;
# for both GCC and Clang )
# TODO use LINKER_TYPE target property when min. version will be CMake v3.29 silverqx
# -fuse-ld=lld
)
endif()