Skip to content

Commit

Permalink
apply -Bsymbolic on arm32
Browse files Browse the repository at this point in the history
see openssl/openssl#22181 (comment)

We only apply it to arm32 since it causes unwanted effects

Signed-off-by: Fs <[email protected]>
  • Loading branch information
Fsu0413 committed Dec 11, 2023
1 parent 9e5d888 commit e102715
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crypto/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -797,6 +797,10 @@ target_compile_definitions(crypto
"-DMODULESDIR=\"${OPENSSL_MODULESDIR_ABSOLUTE}\""
)

if (OPENSSL_ASM AND ( OPENSSL_TARGET_ARCH STREQUAL "arm32" ) AND NOT MSVC)
target_link_options(crypto PUBLIC "-Wl,-Bsymbolic")
endif()

if (WIN32)
target_link_libraries(crypto
PUBLIC ws2_32 crypt32
Expand Down

0 comments on commit e102715

Please sign in to comment.