From bc9bb928c8fc5a44fe7714505d0599e7ae4a49a0 Mon Sep 17 00:00:00 2001 From: thomas Date: Mon, 11 May 2015 16:45:33 +0000 Subject: 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 --- lib/libmd/md5c.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/libmd/md5c.c') 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 -- cgit v1.1