diff --git a/src/Makefile b/src/Makefile index a504ce27..4d56fc01 100644 --- a/src/Makefile +++ b/src/Makefile @@ -442,8 +442,10 @@ endif ### 3.6 popcnt ifeq ($(popcnt),yes) CXXFLAGS += -DUSE_POPCNT - ifeq ($(comp),$(filter $(comp),gcc clang mingw msys2)) - CXXFLAGS += -mpopcnt + ifneq ($(arch),$(filter $(arch),ppc64 armv8-a)) + ifeq ($(comp),$(filter $(comp),gcc clang mingw msys2)) + CXXFLAGS += -mpopcnt + endif endif endif