Fix build when $CC isn't set

This commit is contained in:
Robert Schulze 2024-04-16 14:10:38 +00:00
parent 38d02d78d8
commit cc54479d9f
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A

View File

@ -101,7 +101,7 @@ if(ARCH_AMD64)
else()
macro(perl_generate_asm FILE_IN FILE_OUT)
add_custom_command(OUTPUT ${FILE_OUT}
COMMAND /usr/bin/env perl ${FILE_IN} ${FILE_OUT})
COMMAND ${CMAKE_COMMAND} -E env "CC=${CMAKE_CXX_COMPILER}" /usr/bin/env perl ${FILE_IN} ${FILE_OUT})
endmacro()
perl_generate_asm(${OPENSSL_SOURCE_DIR}/crypto/aes/asm/aes-x86_64.pl ${OPENSSL_BINARY_DIR}/crypto/aes/aes-x86_64.s)