Skip to content

Make libdebugd check in perfparser.cmake take into account library status#465

Merged
milianw merged 1 commit intoKDAB:masterfrom
DarkDefender:patch-1
Feb 10, 2023
Merged

Make libdebugd check in perfparser.cmake take into account library status#465
milianw merged 1 commit intoKDAB:masterfrom
DarkDefender:patch-1

Conversation

@DarkDefender
Copy link
Contributor

On my computer I have libdebugd disabled. However it seems like it still finds some symbols from it in libdwfl.h. This would make the configure step fail as LIBDEBUGINFOD_LIBRARIES would be set to NOT-FOUND but it would still try to use it.

I'm guessing having the HAVE_DWFL_GET_DEBUGINFOD_CLIENT is there to ensure that the whole pipeline has libdebugd support. However it also needs to check if the libraries are found as it is not certain that the libdebugd libraries are available even if HAVE_DWFL_GET_DEBUGINFOD_CLIENT is true.

…atus

There are cases where `HAVE_DWFL_GET_DEBUGINFOD_CLIENT` can be true
while `LIBDEBUGINFOD_LIBRARIES` is marked as "NOT-FOUND".

Add extra check to take this into account.
Copy link
Collaborator

@milianw milianw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm thanks

@milianw milianw merged commit 3b42145 into KDAB:master Feb 10, 2023
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.

2 participants