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
configure: fix AC_CHECK_LIB usage #718
Conversation
Replace empty string with a single space in the third argument of `AC_CHECK_LIB` (`action-if-found`) where applicable. Empty string in the argument causes `AC_CHECK_LIB` to use the default action when a library is found which includes adding the library to `LIBS`, which specifies libraries to be linked in every binary and library in the project. This fixes libkrad, liblber, libldap_r and libsss_nss_idmap being linked to every binary and library in IPA, even where unused. https://pagure.io/freeipa/issue/6846
|
Is this peculiar behavior of |
|
It does not explicitly say what constitutes an unspecified value though. |
BTW it is not peculiar behaviour because most project define custom LIBS using the 3rd argument And link to online documentation https://www.gnu.org/software/autoconf/manual/autoconf.html#Libraries |
|
A little bit offtopic. It is interesting that you look for the function |
|
This patch seems to have fixed the problem, ACK. |
Replace empty string with a single space in the third argument of
AC_CHECK_LIB(action-if-found) where applicable.Empty string in the argument causes
AC_CHECK_LIBto use the defaultaction when a library is found which includes adding the library to
LIBS,which specifies libraries to be linked in every binary and library in the
project.
This fixes libkrad, liblber, libldap_r and libsss_nss_idmap being linked to
every binary and library in IPA, even where unused.
https://pagure.io/freeipa/issue/6846