Add "weak" declarations of symbols used in safestack.h and lhash.h
authorMatthias Kraft <Matthias.Kraft@softwareag.com>
Fri, 18 Jan 2019 12:09:06 +0000 (13:09 +0100)
committerRichard Levitte <levitte@openssl.org>
Sun, 27 Jan 2019 09:48:58 +0000 (10:48 +0100)
commit6638b2214761b5f30300534e0fe522448113c6cf
tree0f54e104d65fe60d0d672008d2de90aeb2896418
parent2c75f03b39de2fa7d006bc0f0d7c58235a54d9bb
Add "weak" declarations of symbols used in safestack.h and lhash.h

Only for SunCC for now.

It turns out that some compilers to generate external variants of
unused static inline functions, and if they use other external
symbols, those need to be present as well.  If you then happen to
include one of safestack.h or lhash.h without linking with libcrypto,
the build fails.

Fixes #6912

Signed-off-by: Matthias Kraft <Matthias.Kraft@softwareag.com>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8087)
include/openssl/lhash.h
include/openssl/safestack.h