Shared library build fails with "/usr/bin/ld: unrecognized option '-plugin'" on FreeBSD 11.1
The subject says it. It does not look like there's anything special in my environment, it's a pretty stock FreeBSD 11.1 amd64 installation.
After git clone, creating a temp dir and running cmake from it, make cbor is successful, but make cbor_shared fails with:
[ 95%] Building C object src/CMakeFiles/cbor_shared.dir/cbor/ints.c.o [100%] Linking C shared library libcbor.so /usr/bin/ld: unrecognized option '-plugin' /usr/bin/ld: use the --help option for usage information cc: error: linker command failed with exit code 1 (use -v to see invocation) *** Error code 1
Hi @tobez , thanks for the report. libcbor's cmake never sets this, so this must be an issue with how cmake is configuring the build for your system. You can try looking at or setting the cmake linker flag variables (CMAKE_EXE_LINKER_FLAGS etc.) to see what is going on.
Closing due to inactivity