From: Richard Levitte <levitte@openssl.org>
Date: Thu, 13 Feb 2020 17:17:43 +0000 (+0100)
Subject: PROV: Build the main FIPS module code with FIPS_MODE defined
X-Git-Tag: openssl-3.0.0-alpha1~467
X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f93a17f13cef29ec73fc25aa186d240b439963f8;p=oweals%2Fopenssl.git

PROV: Build the main FIPS module code with FIPS_MODE defined

Without that, its main source wasn't compiled correctly.

Fixes #11089

Reviewed-by: Matthias St. Pierre <Matthias.St.Pierre@ncp-e.com>
(Merged from https://github.com/openssl/openssl/pull/11090)
---

diff --git a/providers/build.info b/providers/build.info
index 6d4f6ae82c..a58c8eae75 100644
--- a/providers/build.info
+++ b/providers/build.info
@@ -101,6 +101,7 @@ SUBDIRS=fips
 $FIPSGOAL=fips
 DEPEND[$FIPSGOAL]=$LIBIMPLEMENTATIONS $LIBFIPS
 INCLUDE[$FIPSGOAL]=../include
+DEFINE[$FIPSGOAL]=FIPS_MODE
 IF[{- defined $target{shared_defflag} -}]
   SOURCE[$FIPSGOAL]=fips.ld
   GENERATE[fips.ld]=../util/providers.num