summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pppd
diff options
context:
space:
mode:
authorabial <abial@FreeBSD.org>1999-07-15 21:47:52 +0000
committerabial <abial@FreeBSD.org>1999-07-15 21:47:52 +0000
commitfeb93f418cbcbeb6cd66407e2a4465384f67e16a (patch)
tree45e034213de87f14ba851143d888f411e37f46f8 /usr.sbin/pppd
parentfa5dc414013bd0790fe7fa11d2dded1a0eb6ce86 (diff)
downloadFreeBSD-src-feb93f418cbcbeb6cd66407e2a4465384f67e16a.zip
FreeBSD-src-feb93f418cbcbeb6cd66407e2a4465384f67e16a.tar.gz
Add a knob to avoid DES code when making crunched binary. This isn't a beauty
incarnated, it just matches other deficiencies related to crunchgen and friends... and we already have similar code in ppp/Makefile. RELEASE_CRUNCH should be axed, but for now let's be consistent. Submitted by: Patrick Powell <papowell@astart.com>
Diffstat (limited to 'usr.sbin/pppd')
-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 f6e5858..f9f0266 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>
OpenPOWER on IntegriCloud