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:56:26 +0000 (10:56 +0100)
commitd4f4fcabec16933bbd6572e17ba272a0e2852749
treef90ea81451854d247ca8c1b80a5550688f9524dc
parent5865bc0f835cb7e571d9da06794d00a966bbdfe0
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)

(cherry picked from commit 6638b2214761b5f30300534e0fe522448113c6cf)
include/openssl/lhash.h
include/openssl/safestack.h