File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -776,14 +776,15 @@ if test "$OPT_SHANI" = "auto"; then
776776 " __m128i a = _mm_setzero_si128(); (void)_mm_extract_epi32(a, 0);" \
777777 " -msse4" ; then
778778 HAS_SSE4=yes
779- # Now check for the SHANI extension
779+ # Now check for the SHANI extension
780780 if cc_check_statement " x86intrin.h" \
781781 " __m128i a = _mm_setzero_si128(); a = _mm_sha1rnds4_epu32(a, a, 0);" \
782782 " -msse4 -msha" ;
783783 then
784784 HAS_X86_SSE4_SHANI=yes
785- LIBRHASH_OPTFLAGS=$( join_params $LIBRHASH_OPTFLAGS -msse4 -msha)
786- LIBRHASH_DEFINES=$( join_params $LIBRHASH_DEFINES -DRHASH_SSE4_SHANI)
785+ # Add all SHANI options to the LIBRHASH_OPTFLAGS, so it can be overriden by
786+ # distro-specific OPTFLAGS, but only all together
787+ LIBRHASH_OPTFLAGS=$( join_params $LIBRHASH_OPTFLAGS -DRHASH_SSE4_SHANI -msse4 -msha)
787788 fi
788789 fi
789790 finish_check " $HAS_X86_SSE4_SHANI "
You can’t perform that action at this time.
0 commit comments