summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrzej Bialecki <abial@FreeBSD.org>1999-07-15 21:47:52 +0000
committerAndrzej Bialecki <abial@FreeBSD.org>1999-07-15 21:47:52 +0000
commita4df7ffed99437d34128dd7dba6ca4bd39098e0b (patch)
treecb94501c3e0f6ba060550008f99a436e4e39afd0
parent18547190677db9cbe8e99e64e4eb99066a517087 (diff)
Notes
-rw-r--r--usr.sbin/pppd/Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/usr.sbin/pppd/Makefile b/usr.sbin/pppd/Makefile
index f6e5858dd51d..f9f0266db912 100644
--- a/usr.sbin/pppd/Makefile
+++ b/usr.sbin/pppd/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.12 1998/10/11 19:40:38 jdp Exp $
+# $Id: Makefile,v 1.13 1999/04/29 17:56:22 jdp Exp $
CFLAGS+= -DHAVE_PATHS_H
@@ -28,7 +28,7 @@ LDADD+= -lpcap
DPADD+= ${LIBPCAP}
# MS-CHAP support. Requires the DES library.
-.if exists(${.CURDIR}/../../secure) && !defined(NOCRYPT) && !defined(NOSECURE)
+.if exists(${.CURDIR}/../../secure) && !defined(NOCRYPT) && !defined(NOSECURE) && !defined(RELEASE_CRUNCH)
DISTRIBUTION=des
CFLAGS+=-DCHAPMS
SRCS+= chap_ms.c
@@ -36,4 +36,13 @@ LDADD+= -ldes
DPADD+= ${LIBDES}
.endif
+.if defined(RELEASE_CRUNCH)
+# We must create these objects because crunchgen will link them,
+# and we don't want any unused symbols to spoil the final link.
+SRCS+= chap_ms.c
+chap_ms.o:
+ >null_${.PREFIX}.c
+ cc -c -o ${.TARGET} null_${.PREFIX}.c
+.endif
+
.include <bsd.prog.mk>