summaryrefslogtreecommitdiffstats
path: root/secure/lib
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>2013-09-23 20:35:54 +0000
committerdes <des@FreeBSD.org>2013-09-23 20:35:54 +0000
commit476b7e3d43eadb9adc07587cb47ade03d7fc6f22 (patch)
tree204a4783390b9e2cd41aa93420dec26e049d2dba /secure/lib
parent6d86a0080bfdac11278fa40273e50920072f74df (diff)
downloadFreeBSD-src-476b7e3d43eadb9adc07587cb47ade03d7fc6f22.zip
FreeBSD-src-476b7e3d43eadb9adc07587cb47ade03d7fc6f22.tar.gz
Unbreak the WITHOUT_KERBEROS build and try to reduce the odds of a
repeat performance by introducing a script that runs configure with and without Kerberos, diffs the result and generates krb5_config.h, which contains the preprocessor macros that need to be defined in the Kerberos case and undefined otherwise. Approved by: re (marius)
Diffstat (limited to 'secure/lib')
-rw-r--r--secure/lib/libssh/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/secure/lib/libssh/Makefile b/secure/lib/libssh/Makefile
index 387272b..5536f66 100644
--- a/secure/lib/libssh/Makefile
+++ b/secure/lib/libssh/Makefile
@@ -39,7 +39,7 @@ USEPRIVATELIB+= ldns
CFLAGS+= -I${SSHDIR} -include ssh_namespace.h
.if ${MK_KERBEROS_SUPPORT} != "no"
-CFLAGS+= -DGSSAPI -DHAVE_GSSAPI_GSSAPI_H=1 -DKRB5 -DHEIMDAL
+CFLAGS+= -include krb5_config.h
DPADD+= ${LIBGSSAPI} ${LIBKRB5} ${LIBHX509} ${LIBASN1} ${LIBCOM_ERR} ${LIBMD} ${LIBROKEN}
LDADD+= -lgssapi -lkrb5 -lhx509 -lasn1 -lcom_err -lmd -lroken
.endif
@@ -58,3 +58,6 @@ LDADD+= -lcrypto -lcrypt -lz
.PATH: ${SSHDIR} ${SSHDIR}/openbsd-compat
${OBJS} ${POBJS} ${SOBJS}: ssh_namespace.h
+.if ${MK_KERBEROS_SUPPORT} != "no"
+${OBJS} ${POBJS} ${SOBJS}: krb5_config.h
+.endif
OpenPOWER on IntegriCloud