diff --git a/src/Makefile b/src/Makefile index 35e56326..084b8d6b 100644 --- a/src/Makefile +++ b/src/Makefile @@ -394,7 +394,13 @@ endif ### 3.6 popcnt ifeq ($(popcnt),yes) - CXXFLAGS += -DUSE_POPCNT + ifeq ($(arch),$(filter $(arch),ppc64 armv8-a)) + CXXFLAGS += -DUSE_POPCNT + else ifeq ($(comp),icc) + CXXFLAGS += -msse3 -DUSE_POPCNT + else + CXXFLAGS += -msse3 -mpopcnt -DUSE_POPCNT + endif endif ifeq ($(avx2),yes)