Skip to content

pc: use absolute lib directory#584

Merged
nmoinvaz merged 1 commit into
zlib-ng:devfrom
mkrupcale:pkg-config-absolute-libdir
Aug 31, 2021
Merged

pc: use absolute lib directory#584
nmoinvaz merged 1 commit into
zlib-ng:devfrom
mkrupcale:pkg-config-absolute-libdir

Conversation

@mkrupcale

Copy link
Copy Markdown
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