1 diff --git a/sys/modules/aesni/Makefile b/sys/modules/aesni/Makefile
2 index cb8c744adde..1c327331890 100644
3 --- a/sys/modules/aesni/Makefile
4 +++ b/sys/modules/aesni/Makefile
8 .PATH: ${SRCTOP}/sys/crypto/aesni
9 -.PATH: ${SRCTOP}/contrib/llvm-project/clang/lib/Headers
13 @@ -40,8 +39,8 @@ intel_sha256.o: intel_sha256.c
14 aesni_ghash.o: aesni.h
17 -intel_sha1.o: sha_sse.h immintrin.h shaintrin.h tmmintrin.h xmmintrin.h
18 -intel_sha256.o: sha_sse.h immintrin.h shaintrin.h tmmintrin.h xmmintrin.h
19 +intel_sha1.o: sha_sse.h
20 +intel_sha256.o: sha_sse.h
22 .include <bsd.kmod.mk>
24 diff --git a/sys/modules/blake2/Makefile b/sys/modules/blake2/Makefile
25 index e4b3fb9f126..5bfd9c2ae02 100644
26 --- a/sys/modules/blake2/Makefile
27 +++ b/sys/modules/blake2/Makefile
29 .PATH: ${SRCTOP}/sys/contrib/libb2
30 .PATH: ${SRCTOP}/sys/crypto/blake2
31 .PATH: ${SRCTOP}/sys/opencrypto
32 -.PATH: ${SRCTOP}/contrib/llvm-project/clang/lib/Headers
36 @@ -64,8 +63,7 @@ ${src:S/.c/.o/}: ${src}
37 -D_MM_MALLOC_H_INCLUDED -Wno-unused-function ${.IMPSRC}
40 -${src:S/.c/.o/}: intrin.h emmintrin.h tmmintrin.h smmintrin.h immintrin.h \
41 - x86intrin.h ${SRCS:M*.h}
42 +${src:S/.c/.o/}: ${SRCS:M*.h}
45 # FreeBSD-specific sources: