summaryrefslogtreecommitdiffstats
path: root/lib/libmd/md4c.c
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <luiz@netgate.com>2015-09-15 15:55:05 -0500
committerLuiz Otavio O Souza <luiz@netgate.com>2015-10-20 12:03:59 -0500
commit8778d265c656e499fbc5ff31e2740eb4789c618e (patch)
tree6f7883c10d1a820af8d3468a885bebe593e6c516 /lib/libmd/md4c.c
parente400455deb0c5717b85fd4747795cd7749fbd953 (diff)
downloadFreeBSD-src-8778d265c656e499fbc5ff31e2740eb4789c618e.zip
FreeBSD-src-8778d265c656e499fbc5ff31e2740eb4789c618e.tar.gz
MFC r282774:
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 TAG: IPSEC-HEAD Issue: #4841
Diffstat (limited to 'lib/libmd/md4c.c')
-rw-r--r--lib/libmd/md4c.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libmd/md4c.c b/lib/libmd/md4c.c
index 2234c40..de1a7b4a 100644
--- a/lib/libmd/md4c.c
+++ b/lib/libmd/md4c.c
@@ -291,6 +291,11 @@ unsigned int len;
(((UINT4)input[j+2]) << 16) | (((UINT4)input[j+3]) << 24);
}
+#ifdef WEAK_REFS
+/* When building libmd, provide weak references. Note: this is not
+ activated in the context of compiling these sources for internal
+ use in libcrypt.
+ */
#undef MD4Init
__weak_reference(_libmd_MD4Init, MD4Init);
#undef MD4Update
@@ -299,3 +304,4 @@ __weak_reference(_libmd_MD4Update, MD4Update);
__weak_reference(_libmd_MD4Pad, MD4Pad);
#undef MD4Final
__weak_reference(_libmd_MD4Final, MD4Final);
+#endif
OpenPOWER on IntegriCloud