summaryrefslogtreecommitdiffstats
path: root/usr.bin/su/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/su/Makefile')
-rw-r--r--usr.bin/su/Makefile12
1 files changed, 9 insertions, 3 deletions
diff --git a/usr.bin/su/Makefile b/usr.bin/su/Makefile
index 33dc062..4eeb2f6 100644
--- a/usr.bin/su/Makefile
+++ b/usr.bin/su/Makefile
@@ -2,9 +2,15 @@
PROG= su
LDADD= -lcrypt
-#CFLAGS+=-DKERBEROS
-#DPADD= ${LIBKRB} ${LIBDES}
-#LDADD+=-lkrb -ldes
+DPADD= ${LIBCRYPT}
+
+.if exists(${DESTDIR}/usr/lib/libkrb.a) && (defined(MAKE_KERBEROS) \
+ || defined(MAKE_EBONES))
+CFLAGS+=-DKERBEROS
+DPADD+= ${LIBKRB} ${LIBDES}
+LDADD+= -lkrb -ldes
+.endif
+
BINOWN= root
BINMODE=4555
INSTALLFLAGS=-fschg
OpenPOWER on IntegriCloud