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

pc: use absolute lib directory #584

Merged
merged 1 commit into from
Aug 31, 2021

Conversation

mkrupcale
Copy link
Contributor

INSTALL_LIB_DIR is set to CMAKE_INSTALL_LIB_DIR, and while CMAKE_INSTALL_PREFIX
is prepended during install [1], this is not the case for the pkg-config
file. Thus, use the full absolute path CMAKE_INSTALL_FULL_LIBDIR for generating
the pkg-config file lib directory variables.

I originally saw this issue while building a package vfrnav which indirectly depended on minizip, where libtool complained that lib64 did not exist because -Llib64 was being passed to the linker, which was coming from minizip's pkg-config file [2].

[1] https://gitlab.kitware.com/cmake/cmake/-/issues/20250
[2] https://src.fedoraproject.org/rpms/libpqxx/pull-request/7

INSTALL_LIB_DIR is set to CMAKE_INSTALL_LIB_DIR, and while CMAKE_INSTALL_PREFIX
is prepended during install [1], this is not the case for the pkg-config
file. Thus, use the full absolute path CMAKE_INSTALL_FULL_LIBDIR for generating
the pkg-config file lib directory variables.

[1] https://gitlab.kitware.com/cmake/cmake/-/issues/20250
@nmoinvaz nmoinvaz changed the base branch from master to dev August 31, 2021 20:08
@nmoinvaz nmoinvaz merged commit 313b3d0 into zlib-ng:dev Aug 31, 2021
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