diff options
author | Luiz Otavio O Souza <luiz@netgate.com> | 2015-09-15 15:55:05 -0500 |
---|---|---|
committer | Luiz Otavio O Souza <luiz@netgate.com> | 2015-10-20 12:03:59 -0500 |
commit | 8778d265c656e499fbc5ff31e2740eb4789c618e (patch) | |
tree | 6f7883c10d1a820af8d3468a885bebe593e6c516 /lib/libmd/sha256c.c | |
parent | e400455deb0c5717b85fd4747795cd7749fbd953 (diff) | |
download | FreeBSD-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/sha256c.c')
-rw-r--r-- | lib/libmd/sha256c.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libmd/sha256c.c b/lib/libmd/sha256c.c index 0c2fd1b..68f6aee 100644 --- a/lib/libmd/sha256c.c +++ b/lib/libmd/sha256c.c @@ -299,6 +299,11 @@ SHA256_Final(unsigned char digest[32], SHA256_CTX * ctx) memset((void *)ctx, 0, sizeof(*ctx)); } +#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 SHA256_Init __weak_reference(_libmd_SHA256_Init, SHA256_Init); #undef SHA256_Update @@ -307,5 +312,4 @@ __weak_reference(_libmd_SHA256_Update, SHA256_Update); __weak_reference(_libmd_SHA256_Final, SHA256_Final); #undef SHA256_Transform __weak_reference(_libmd_SHA256_Transform, SHA256_Transform); -#undef SHA256_version -__weak_reference(_libmd_SHA256_version, SHA256_version); +#endif |