openssl/crypto/md5
Xi Ruoyao c4802f718d LoongArch: Fix output file name detection for Perl scripts
We were using the first (or second) argument containing a '.' as the
output name file, but it may be incorrect as -march=la64v1.0 may be in
the command line.  If the builder specifies -march=la64v1.0 in the
CFLAGS, the script will write to a file named "-march=la64v1.0" and
cause a build error with cryptic message:

    ld: crypto/pem/loader_attic-dso-pvkfmt.o: in function `i2b_PVK':
    .../openssl-3.4.1/crypto/pem/pvkfmt.c:1070:(.text+0x11a8): undefined reference to `OPENSSL_cleanse'

Adapt the approach of ARM and RISC-V (they have similar flags like
-march=v8.1-a or -misa-spec=2.2) to fix the issue.

Signed-off-by: Xi Ruoyao <xry111@xry111.site>

Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/26717)

(cherry picked from commit f48c14e94e)
2025-02-14 11:35:41 +01:00
..
asm LoongArch: Fix output file name detection for Perl scripts 2025-02-14 11:35:41 +01:00
build.info md5: add assembly implementation for loongarch64 2023-12-27 10:15:29 +01:00
md5_dgst.c Update copyright year 2020-04-23 13:55:52 +01:00
md5_local.h md5: add assembly implementation for loongarch64 2023-12-27 10:15:29 +01:00
md5_one.c Update copyright year 2020-04-23 13:55:52 +01:00
md5_sha1.c Rename md5_sha1_* ossl_md5_sha1_* 2020-11-19 07:38:53 +10:00