summaryrefslogtreecommitdiffstats
path: root/lib/libmd
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2017-03-22 17:56:46 +0000
committerbdrewery <bdrewery@FreeBSD.org>2017-03-22 17:56:46 +0000
commitcbb38ce6a11f1fd762efbb558adbf4b370c03fe4 (patch)
treed0cac883d24f790736c1efeec50d326a7f2023d7 /lib/libmd
parent6f1e2c1745b78711f7687843e16b2647dc7c7545 (diff)
downloadFreeBSD-src-cbb38ce6a11f1fd762efbb558adbf4b370c03fe4.zip
FreeBSD-src-cbb38ce6a11f1fd762efbb558adbf4b370c03fe4.tar.gz
MFC r314709,r314790,r314794:
r314709: Fix bootstrapping mtree after r313404 for older systems. r314790: Added comments for why nmtree/libmd are bootstrapped. r314794: Fix bootstrapping libmd on older systems after r314709. PR: 217673
Diffstat (limited to 'lib/libmd')
-rw-r--r--lib/libmd/Makefile7
1 files changed, 7 insertions, 0 deletions
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