From 235ce3ea99a411cfe04c344ca39af0d29ca9013c Mon Sep 17 00:00:00 2001 From: John Eckersberg Date: Jul 06 2021 16:32:15 +0000 Subject: Compile with FIPS support by default --- diff --git a/erlang.spec b/erlang.spec index 417a70d..9991139 100644 --- a/erlang.spec +++ b/erlang.spec @@ -16,6 +16,9 @@ %endif %endif +# Compile with FIPS support by default +%bcond_without fips + ## ## Optional components ## @@ -711,6 +714,7 @@ ERL_FLAGS="${RPM_OPT_FLAGS} -fno-strict-aliasing" CFLAGS="${ERL_FLAGS}" CXXFLAGS="${ERL_FLAGS}" %configure --enable-shared-zlib --enable-sctp --enable-systemd --disable-silent-rules \ %{?__without_kernel_poll:--disable-kernel-poll} \ + %{?with_fips:--enable-fips} \ %if %{__with_java} \ %else