summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.inc18
-rw-r--r--lib/libmd/Makefile7
2 files changed, 13 insertions, 2 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 797140a..2125e20 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -1583,10 +1583,14 @@ ${_bt}-usr.bin/m4: ${_bt}-lib/libopenbsd
${_bt}-usr.bin/lex: ${_bt}-usr.bin/m4
.endif
-.if ${BOOTSTRAPPING} < 1000026
-_nmtree= lib/libnetbsd \
+# r245440 mtree -N support added
+# r313404 requires sha384.h for libnetbsd, added to libmd in r292782
+.if ${BOOTSTRAPPING} < 1100093
+_nmtree= lib/libmd \
+ lib/libnetbsd \
usr.sbin/nmtree
+${_bt}-lib/libnetbsd: ${_bt}-lib/libmd
${_bt}-usr.sbin/nmtree: ${_bt}-lib/libnetbsd
.endif
diff --git a/lib/libmd/Makefile b/lib/libmd/Makefile
index b556ea0..f00c340 100644
--- a/lib/libmd/Makefile
+++ b/lib/libmd/Makefile
@@ -72,6 +72,13 @@ CLEANFILES+= md[245]hl.c md[245].ref md[245].3 mddriver \
skein256.ref skein512.ref skein1024.ref \
skeindriver
+# Need src tree sys/md5.h for MD5FileChunk prototype on older systems.
+SRCS+= sys/md5.h
+CLEANDIRS= sys
+CFLAGS+= -I.
+sys/md5.h: ${SRCTOP}/sys/${.TARGET} .NOMETA
+ ln -sf ${.ALLSRC} ${.TARGET}
+
# Define WEAK_REFS to provide weak aliases for libmd symbols
#
# Note that the same sources are also used internally by libcrypt,
OpenPOWER on IntegriCloud