Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shared library build fails with "/usr/bin/ld: unrecognized option '-plugin'" on FreeBSD 11.1 #64

Closed
tobez opened this issue Dec 2, 2017 · 2 comments

Comments

@tobez
Copy link

tobez commented Dec 2, 2017

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

@PJK
Copy link
Owner

PJK commented Dec 17, 2017

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.

@PJK
Copy link
Owner

PJK commented Feb 19, 2023

Closing due to inactivity

@PJK PJK closed this as completed Feb 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants