svn commit: r314794 - head/lib/libmd
Bryan Drewery
bdrewery at FreeBSD.org
Mon Mar 6 21:06:56 UTC 2017
Author: bdrewery
Date: Mon Mar 6 21:06:55 2017
New Revision: 314794
URL: https://svnweb.freebsd.org/changeset/base/314794
Log:
Fix bootstrapping libmd on older systems after r314709.
This follows another fix to bootstrap libmd after r313404. The
MD5FileChunk prototype is needed to build libmd, but it is
only reliably in the src tree's sys/md5.h header. Rather than
polluting the legacy build with this header for the entire build,
just symlink it in here for now as is done in the elftoolchain
build. Libmd is already referencing other src tree headers by
its used of CFLAGS+= ${SRCTOP}/sys/crypto/sha2. This, and
other uses of CFLAGS+= ${SRCTOP}/sys..., may later change to
be in the legacy mechanism.
Reported by: bde, ian, sjg
Tested by: ian
Modified:
head/lib/libmd/Makefile
Modified: head/lib/libmd/Makefile
==============================================================================
--- head/lib/libmd/Makefile Mon Mar 6 20:54:21 2017 (r314793)
+++ head/lib/libmd/Makefile Mon Mar 6 21:06:55 2017 (r314794)
@@ -72,6 +72,13 @@ CLEANFILES+= md[245]hl.c md[245].ref md[
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,
More information about the svn-src-head
mailing list