From 2d06777747f1fd0476534fd35817e2874947a31f Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 29 Dec 2018 00:56:25 -0500 Subject: [PATCH] Fix GCM build when SSSE3 not available --- GNUmakefile | 7 +++++++ GNUmakefile-cross | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/GNUmakefile b/GNUmakefile index 4d4857cf..1586353d 100755 --- a/GNUmakefile +++ b/GNUmakefile @@ -392,6 +392,13 @@ ifeq ($(DETECT_FEATURES),1) endif endif + # Drop to SSSE2 if available + ifeq ($(SSSE3_FLAG),) + ifneq ($(SSE2_FLAG),) + GCM_FLAG = $(SSE2_FLAG) + endif + endif + # DETECT_FEATURES endif diff --git a/GNUmakefile-cross b/GNUmakefile-cross index 0ba83142..425aa242 100755 --- a/GNUmakefile-cross +++ b/GNUmakefile-cross @@ -335,6 +335,13 @@ ifeq ($(DETECT_FEATURES),1) endif endif + # Drop to SSSE2 if available + ifeq ($(SSSE3_FLAG),) + ifneq ($(SSE2_FLAG),) + GCM_FLAG = $(SSE2_FLAG) + endif + endif + # DETECT_FEATURES endif