diff --git a/sys/modules/Makefile b/sys/modules/Makefile index a742fcbbdd1a..cfe61308bc73 100644 --- a/sys/modules/Makefile +++ b/sys/modules/Makefile @@ -627,8 +627,10 @@ _aac= aac _aacraid= aacraid _acpi= acpi .if ${MK_CRYPT} != "no" || defined(ALL_MODULES) +.if ${COMPILER_TYPE} != "gcc" || ${COMPILER_VERSION} > 40201 _aesni= aesni .endif +.endif _amd_ecc_inject=amd_ecc_inject _amdsbwd= amdsbwd _amdsmn= amdsmn