-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use pkg-config to detect PAM when possible (#479)
This fixes a link error on Gentoo Linux by not putting -L/usr/lib in the link command on 64-bit systems. The correct path is -L/usr/lib64, and this is the default path used by GCC and clang. Users may override pkg-config by setting PAM_CFLAGS and PAM_LDFLAGS in the environment before calling configure. This is standard behavior for the PKG_CHECK_MODULES macro. The legacy detection logic is maintained when a path is given as an argument to --with-pam. Note that this logic is broken when libdir is not "lib". Signed-off-by: Mike Gilbert <[email protected]>
- Loading branch information
Showing
1 changed file
with
27 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters