From 22091abbe7b4a5667f62603dfd875e9ec6adf789 Mon Sep 17 00:00:00 2001 From: Alexey Shabalin Date: Fri, 7 Feb 2014 17:02:03 +0400 Subject: Use KRB5_CFLAGS where appropriate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There are cases when MIT Kerberos is installed with includes in a subdirectory of /usr/include (or /usr/local/include). In such case we have to properly use KRB5_CFLAGS to reach them. https://fedorahosted.org/sssd/ticket/2226 Reviewed-by: Lukáš Slebodník --- Makefile.am | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index d990a8c61..07bd4e816 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1009,6 +1009,7 @@ krb5_utils_tests_SOURCES = \ $(SSSD_FAILOVER_OBJ) krb5_utils_tests_CFLAGS = \ $(AM_CFLAGS) \ + $(KRB5_CFLAGS) \ $(CHECK_CFLAGS) \ $(SYSTEMD_LOGIN_CFLAGS) krb5_utils_tests_LDADD = \ @@ -1285,6 +1286,7 @@ krb5_child_test_SOURCES = \ krb5_child_test_CFLAGS = \ $(AM_CFLAGS) \ -DKRB5_CHILD_DIR=\"$(builddir)\" \ + $(KRB5_CFLAGS) \ $(CHECK_CFLAGS) \ $(SYSTEMD_LOGIN_CFLAGS) krb5_child_test_LDADD = \ @@ -1694,6 +1696,9 @@ libsss_ldap_common_la_SOURCES += \ src/providers/ldap/sdap_async_autofs.c endif +libsss_ldap_common_la_CFLAGS = \ + $(KRB5_CFLAGS) + pkglib_LTLIBRARIES += libsss_krb5_common.la libsss_krb5_common_la_SOURCES = \ @@ -1709,6 +1714,8 @@ libsss_krb5_common_la_SOURCES = \ src/providers/krb5/krb5_init_shared.c libsss_krb5_common_la_LDFLAGS = \ -avoid-version +libsss_krb5_common_la_CFLAGS = \ + $(KRB5_CFLAGS) libsss_ldap_la_SOURCES = \ src/util/find_uid.c \ @@ -1769,7 +1776,8 @@ libsss_krb5_la_SOURCES = \ libsss_krb5_la_CFLAGS = \ $(AM_CFLAGS) \ $(SYSTEMD_LOGIN_CFLAGS) \ - $(DHASH_CFLAGS) + $(DHASH_CFLAGS) \ + $(KRB5_CFLAGS) libsss_krb5_la_LIBADD = \ $(SYSTEMD_LOGIN_LIBS) \ $(DHASH_LIBS) \ @@ -1981,7 +1989,7 @@ sssd_pac_plugin_la_CFLAGS = \ $(KRB5_CFLAGS) sssd_pac_plugin_la_LIBADD = \ $(CLIENT_LIBS) \ - -lkrb5 + $(KRB5_LIBS) sssd_pac_plugin_la_LDFLAGS = \ -avoid-version \ -module -- cgit