aboutsummaryrefslogtreecommitdiff
path: root/lib/libmd/Makefile
diff options
context:
space:
mode:
authorThomas Quinot <thomas@FreeBSD.org>2015-05-11 16:45:33 +0000
committerThomas Quinot <thomas@FreeBSD.org>2015-05-11 16:45:33 +0000
commit2dd0a89c2645ebeeae8060ba89b54e1cff9aa9a1 (patch)
tree159ca1170cb308d27fb5cf638217651c48dcf6cc /lib/libmd/Makefile
parent8a56ddde27c0a20f66939ed36867470ae5d6a3be (diff)
downloadsrc-2dd0a89c2645ebeeae8060ba89b54e1cff9aa9a1.tar.gz
src-2dd0a89c2645ebeeae8060ba89b54e1cff9aa9a1.zip
Unbreak MIPS build following rev. 282726
Introduce further adjustments to the renaming of libmd symbols: make sure that we do not generate dangling weak aliases, as this causes build failures on MIPS. Tested by: sbruno
Notes
Notes: svn path=/head/; revision=282774
Diffstat (limited to 'lib/libmd/Makefile')
-rw-r--r--lib/libmd/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/libmd/Makefile b/lib/libmd/Makefile
index 727fd8621716..61bea29c96b1 100644
--- a/lib/libmd/Makefile
+++ b/lib/libmd/Makefile
@@ -42,7 +42,13 @@ CLEANFILES+= md[245]hl.c md[245].ref md[245].3 mddriver \
sha0.ref sha0hl.c sha1.ref sha1hl.c shadriver \
sha256.ref sha256hl.c sha512.ref sha512hl.c
-CFLAGS+= -I${.CURDIR}
+# Define WEAK_REFS to provide weak aliases for libmd symbols
+#
+# Note that the same sources are also used internally by libcrypt,
+# in which case:
+# * macros are used to rename symbols to libcrypt internal names
+# * no weak aliases are generated
+CFLAGS+= -I${.CURDIR} -DWEAK_REFS
.PATH: ${.CURDIR}/${MACHINE_ARCH} ${.CURDIR}/../../sys/crypto/sha2
.if exists(${MACHINE_ARCH}/sha.S)