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

Find dependencies for statically-linked libdw #250

Merged
merged 1 commit into from
Jan 5, 2022

Conversation

csw
Copy link
Contributor

@csw csw commented Dec 17, 2021

BackwardConfig.cmake was not explicitly pulling in the dependencies of libdw (libelf, libz, libpthread, etc.), which made it fail to link when libdw was built as a static library (and therefore didn't explicitly encode those dependencies). This fixes that. For context, I'm trying to make it work with vcpkg, using its version of elfutils. (I'm working on adding a vcpkg port for this library, too.)

I had logic in here to use pkg-config, but doing it that way made it use the system version of libdw instead of the one in vcpkg.

BackwardConfig.cmake was not explicitly pulling in the
dependencies (libelf, libz, etc.) of libdw, which made it fail to link
when libdw was built as a static library (and therefore didn't
explicitly encode those dependencies).
@csw csw changed the title Find dependencies for statically-linked libdw, try to use pkg-config Find dependencies for statically-linked libdw Dec 17, 2021
@bombela bombela merged commit 5ffb2c8 into bombela:master Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants