mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
We fix 3 problems with safestack: - Including an openssl header file without linking against libcrypto can cause compilation failures (even if the app does not otherwise need to link against libcrypto). See issue #8102 - Recent changes means that applications in no-deprecated builds will need to include additional macro calls in the source code for all stacks that they need to use - which is an API break. This changes avoids that necessity. - It is not possible to write code using stacks that works in both a no-deprecated and a normal build of OpenSSL. See issue #12707. Fixes #12707 Contains a partial fix for #8102. A similar PR will be needed for hash to fully fix. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/12781)
45 lines
1.6 KiB
Plaintext
45 lines
1.6 KiB
Plaintext
# Note that some of these directories are filtered in Configure. Look for
|
|
# %skipdir there for further explanations.
|
|
|
|
SUBDIRS=crypto ssl apps test util tools fuzz providers doc
|
|
IF[{- !$disabled{'deprecated-3.0'} -}]
|
|
SUBDIRS=engines
|
|
ENDIF
|
|
|
|
LIBS=libcrypto libssl
|
|
INCLUDE[libcrypto]=. include
|
|
INCLUDE[libssl]=. include
|
|
DEPEND[libssl]=libcrypto
|
|
|
|
# Empty DEPEND "indices" means the dependencies are expected to be built
|
|
# unconditionally before anything else.
|
|
DEPEND[]=include/openssl/configuration.h include/openssl/opensslv.h \
|
|
include/openssl/fipskey.h \
|
|
include/openssl/ssl.h \
|
|
include/crypto/bn_conf.h include/crypto/dso_conf.h \
|
|
doc/man7/openssl_user_macros.pod
|
|
|
|
GENERATE[include/openssl/configuration.h]=include/openssl/configuration.h.in
|
|
GENERATE[include/openssl/opensslv.h]=include/openssl/opensslv.h.in
|
|
GENERATE[include/openssl/fipskey.h]=include/openssl/fipskey.h.in
|
|
GENERATE[include/openssl/ssl.h]=include/openssl/ssl.h.in
|
|
GENERATE[include/crypto/bn_conf.h]=include/crypto/bn_conf.h.in
|
|
GENERATE[include/crypto/dso_conf.h]=include/crypto/dso_conf.h.in
|
|
GENERATE[doc/man7/openssl_user_macros.pod]=doc/man7/openssl_user_macros.pod.in
|
|
|
|
IF[{- defined $target{shared_defflag} -}]
|
|
SHARED_SOURCE[libcrypto]=libcrypto.ld
|
|
SHARED_SOURCE[libssl]=libssl.ld
|
|
|
|
GENERATE[libcrypto.ld]=util/libcrypto.num libcrypto
|
|
GENERATE[libssl.ld]=util/libssl.num libssl
|
|
ENDIF
|
|
|
|
IF[{- $config{target} =~ /^(?:Cygwin|mingw|VC-)/ -}]
|
|
GENERATE[libcrypto.rc]=util/mkrc.pl libcrypto
|
|
GENERATE[libssl.rc]=util/mkrc.pl libssl
|
|
|
|
SHARED_SOURCE[libcrypto]=libcrypto.rc
|
|
SHARED_SOURCE[libssl]=libssl.rc
|
|
ENDIF
|