Skip to content

Commit

Permalink
do not add version prefix to openssl symbols under cmake
Browse files Browse the repository at this point in the history
commit_hash:8693ef1b447def6865c209679890a8bb1dd06da7
  • Loading branch information
IlyaNiklyaev committed Feb 8, 2025
1 parent 897ae1d commit 8ed4b36
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/libs/openssl/redef.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#pragma once

#if !defined(OPENSSL_BUILD) && !defined(_MSC_VER)
#if !defined(OPENSSL_BUILD) && !defined(_MSC_VER) && !defined(OPENSSL_DONT_ADD_VERSION_PREFIX)
#define a2d_ASN1_OBJECT v1_a2d_ASN1_OBJECT
#define a2i_ASN1_ENUMERATED v1_a2i_ASN1_ENUMERATED
#define a2i_ASN1_INTEGER v1_a2i_ASN1_INTEGER
Expand Down
4 changes: 4 additions & 0 deletions contrib/libs/openssl/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ ADDINCL(

CFLAGS(-DOPENSSL_BUILD=1)

IF (EXPORT_CMAKE)
CFLAGS(GLOBAL -DOPENSSL_DONT_ADD_VERSION_PREFIX)
ENDIF()

IF (NOT EXPORT_CMAKE OR NOT OPENSOURCE_REPLACE_OPENSSL)

IF (OS_LINUX)
Expand Down

0 comments on commit 8ed4b36

Please sign in to comment.