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

Use PKG_CHECK_MODULES instead of AC_CHECK_LIB for libmagic #66

Closed
wants to merge 1 commit into from

Conversation

LewisGaul
Copy link

As requested in https://listman.redhat.com/archives/libguestfs/2021-May/msg00011.html.

With this change it is possible to get libmagic discovered from a non-standard prefix using e.g. LIBMAGIC_LIBS="~/.local/lib64" LIBMAGIC_CFLAGS="-O3" (there may also be a way using PKG_CONFIG_PATH that I'm not aware of).

Without this change discovery can be achieved with LDFLAGS="-L ~/.local/lib64".

Note the magic.h header file also needs to be discoverable, which I achieved using CPPFLAGS="-I ~/.local/include".

@rwmjones
Copy link
Collaborator

rwmjones commented May 4, 2021

Unfortunately this patch has too many problems to consider and the reporter has already solved this by installing libguestfs from RPMs, so closing.

@rwmjones rwmjones closed this May 4, 2021
@LewisGaul LewisGaul deleted the patch-1 branch May 4, 2021 12:09
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