@@ -573,16 +573,15 @@ then
573573 AM_CFLAGS="$AM_CFLAGS -ffile-prefix-map=\$(abs_top_srcdir)/= -ffile-prefix-map=\$(top_srcdir)/="
574574 fi
575575
576- # opportunistically use linker option --build-id=none
577-
578- if "$CC" -Wl,--build-id=none -x c - -o /dev/null >/dev/null 2>&1 <<' EOF'
576+ # opportunistically force linker option --build-id=sha1 (usually the default)
577+ if "$CC" -Wl,--build-id=sha1 -x c - -o /dev/null >/dev/null 2>&1 <<' EOF'
579578 # include <stdlib.h>
580579 int main(int argc, char **argv) {
581580 (void)argc; (void)argv; return 0;
582581 }
583582 EOF
584583 then
585- AM_LDFLAGS="$AM_LDFLAGS -Wl,--build-id=none "
584+ AM_LDFLAGS="$AM_LDFLAGS -Wl,--build-id=sha1 "
586585 fi
587586fi
588587
@@ -1156,7 +1155,8 @@ then
11561155 test "$enable_dsa" = "" && test "$enable_sha" != "no" && enable_dsa=yes
11571156 if test "$ENABLED_FIPS" = "no" || test "$HAVE_FIPS_VERSION" -le 5; then
11581157 test "$enable_ecccustcurves" = "" && enable_ecccustcurves=yes
1159- test "$enable_brainpool" = "" && enable_brainpool=yes
1158+ test "$enable_ecccustcurves" != "no" && test "$enable_brainpool" = "" && enable_brainpool=yes
1159+ test "$enable_ecccustcurves" != "no" && AM_CFLAGS="$AM_CFLAGS -DHAVE_ECC_CDH -DHAVE_ECC_KOBLITZ -DHAVE_ECC_SECPR2 -DHAVE_ECC_SECPR3"
11601160 fi
11611161 test "$enable_srp" = "" && enable_srp=yes
11621162 fi
@@ -1195,6 +1195,7 @@ then
11951195
11961196 if test "$ENABLED_FIPS" = "no" || test "$HAVE_FIPS_VERSION" -le 5; then
11971197 test "$enable_des3" = "" && enable_des3=yes
1198+ test "$enable_des3" != "no" && AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_DES_ECB"
11981199 fi
11991200
12001201 AM_CFLAGS="$AM_CFLAGS -DHAVE_AES_DECRYPT -DHAVE_AES_ECB -DWOLFSSL_ALT_NAMES"
0 commit comments