summaryrefslogtreecommitdiffstats
path: root/lib/libmd/md5c.c
diff options
context:
space:
mode:
authorthomas <thomas@FreeBSD.org>2015-05-11 16:45:33 +0000
committerthomas <thomas@FreeBSD.org>2015-05-11 16:45:33 +0000
commitbc9bb928c8fc5a44fe7714505d0599e7ae4a49a0 (patch)
tree159ca1170cb308d27fb5cf638217651c48dcf6cc /lib/libmd/md5c.c
parent563a18c47bb409de1ab520d7c99525c989646448 (diff)
downloadFreeBSD-src-bc9bb928c8fc5a44fe7714505d0599e7ae4a49a0.zip
FreeBSD-src-bc9bb928c8fc5a44fe7714505d0599e7ae4a49a0.tar.gz
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
Diffstat (limited to 'lib/libmd/md5c.c')
-rw-r--r--lib/libmd/md5c.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libmd/md5c.c b/lib/libmd/md5c.c
index bfbb531..6b50464 100644
--- a/lib/libmd/md5c.c
+++ b/lib/libmd/md5c.c
@@ -336,6 +336,11 @@ MD5Transform (state, block)
memset ((void *)x, 0, sizeof (x));
}
+#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 MD5Init
__weak_reference(_libmd_MD5Init, MD5Init);
#undef MD5Update
@@ -346,3 +351,4 @@ __weak_reference(_libmd_MD5Pad, MD5Pad);
__weak_reference(_libmd_MD5Final, MD5Final);
#undef MD5Transform
__weak_reference(_libmd_MD5Transform, MD5Transform);
+#endif
OpenPOWER on IntegriCloud