Skip to content

Commit 61dd85b

Browse files
committed
Fix: compile with distro-specific OPTFLAGS
1 parent 00084a2 commit 61dd85b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

configure

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)