Fix no-ec build
authorMatt Caswell <matt@openssl.org>
Wed, 12 Feb 2020 09:19:41 +0000 (09:19 +0000)
committerMatt Caswell <matt@openssl.org>
Wed, 12 Feb 2020 13:16:09 +0000 (13:16 +0000)
Don't attempt to build ecx related source files in a "no-ec" build.

Reviewed-by: Paul Dale <paul.dale@oracle.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11065)

providers/implementations/exchange/build.info
providers/implementations/keymgmt/build.info

index c74e122..51d32fc 100644 (file)
@@ -18,6 +18,7 @@ IF[{- !$disabled{asm} -}]
   ENDIF
 ENDIF
 
-
-SOURCE[$ECX_GOAL]=ecx_exch.c
-DEFINE[$ECX_GOAL]=$ECDEF
+IF[{- !$disabled{ec} -}]
+  SOURCE[$ECX_GOAL]=ecx_exch.c
+  DEFINE[$ECX_GOAL]=$ECDEF
+ENDIF
index 2a79b39..1e4146d 100644 (file)
@@ -13,4 +13,6 @@ IF[{- !$disabled{dsa} -}]
   SOURCE[$DSA_GOAL]=dsa_kmgmt.c
 ENDIF
 SOURCE[$RSA_GOAL]=rsa_kmgmt.c
-SOURCE[$ECX_GOAL]=ecx_kmgmt.c
+IF[{- !$disabled{ec} -}]
+  SOURCE[$ECX_GOAL]=ecx_kmgmt.c
+ENDIF