From 2445af93088372e2273d1b50a289175b4dd41de1 Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Wed, 25 Jun 2025 16:35:13 -0600 Subject: [PATCH] compile both fe_operations.c and low_mem version and rely on macro defines to choose which code gets compiled --- src/include.am | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/include.am b/src/include.am index dee6bbe29..59cfff2bf 100644 --- a/src/include.am +++ b/src/include.am @@ -1298,9 +1298,7 @@ endif endif !BUILD_FIPS_V6 if BUILD_FEMATH -if BUILD_CURVE25519_SMALL src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/fe_low_mem.c -else if BUILD_CURVE25519_INTELASM if !BUILD_X86_ASM src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/fe_x25519_asm.S @@ -1356,13 +1354,10 @@ else src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/fe_operations.c endif !BUILD_ARMASM endif !BUILD_CURVE25519_INTELASM -endif !BUILD_CURVE25519_SMALL endif BUILD_FEMATH if BUILD_GEMATH -if BUILD_ED25519_SMALL src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/ge_low_mem.c -else src_libwolfssl@LIBSUFFIX@_la_SOURCES += wolfcrypt/src/ge_operations.c if !BUILD_FEMATH if BUILD_CURVE25519_INTELASM @@ -1401,7 +1396,6 @@ endif !BUILD_ARMASM endif !BUILD_FIPS_V6 endif !BUILD_CURVE25519_INTELASM endif !BUILD_FEMATH -endif !BUILD_ED25519_SMALL endif BUILD_GEMATH if !BUILD_FIPS_V6