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

target_link_libraries(xx Zydis::Zydis) fails to find libZycore.so #420

Open
yurivict opened this issue Feb 27, 2023 · 0 comments
Open

target_link_libraries(xx Zydis::Zydis) fails to find libZycore.so #420

yurivict opened this issue Feb 27, 2023 · 0 comments
Labels
A-build Area: Build system C-bug Category: This is a bug (or a fix for a bug, when applied to PRs)

Comments

@yurivict
Copy link

yurivict commented Feb 27, 2023

The failing looks like this:

/usr/bin/c++ -g "CMakeFiles/elf2llvm.dir/asm-code.cpp.o" CMakeFiles/elf2llvm.dir/main.cpp.o "CMakeFiles/elf2llvm.dir/zydis-utils.cpp.o" -o elf2llvm  -Wl,-rpath,/usr/local/lib /usr/local/lib/libZydis.so.4.0.0.0 -lZycore 
ld: error: unable to find library -lZycore
c++: error: linker command failed with exit code 1 (use -v to see invocation)

Zydis was configured to use system Zycore.

It finds libZydis.so but it fails to find libZycore.so

On FreeBSD packages are installed into /usr/local/lib but only /usr/lib is in default library path. Once Zycore is installed into /usr/local/lib cmake scripts need to add it to the library path, which they don't.

Version: 4.0.0
FreeBSD 13.1

@flobernd flobernd added C-bug Category: This is a bug (or a fix for a bug, when applied to PRs) A-build Area: Build system labels Feb 27, 2023
@yurivict yurivict changed the title target_link_libraries(xx Zydis::Zydis) fails to find target_link_libraries(xx Zydis::Zydis) fails to find libZycore.so Feb 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-build Area: Build system C-bug Category: This is a bug (or a fix for a bug, when applied to PRs)
Projects
None yet
Development

No branches or pull requests

2 participants