Skip to content

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

@yurivict

Description

@yurivict

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-buildArea: Build systemC-bugCategory: This is a bug (or a fix for a bug, when applied to PRs)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions