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-config to detect PAM when possible #479

Merged
merged 1 commit into from
Apr 26, 2024

Commits on Apr 24, 2024

  1. Use pkg-config to detect PAM when possible

    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]>
    floppym committed Apr 24, 2024
    Configuration menu
    Copy the full SHA
    026a643 View commit details
    Browse the repository at this point in the history