Hi, on my endeavour to OpenBSD/arm64 I stumbled upon the clang provided headers that we install. Especially since clang includes its own directories before /usr/include. This means that for example stddef.h is included from clang's directory and not /usr/include. But clang's stddef.h does not include sys/cdefs.h, which libcrypto kind of depends on for BEGIN_HIDDEN_DECLS.
Now FreeBSD seems to not install a few of the clang headers. I have this feeling that we should also skip installing those. This is the list of headers that are not installed by FreeBSD, applied to our Makefile. Comments? Patrick diff --git a/gnu/usr.bin/clang/include/clang/intrin/Makefile b/gnu/usr.bin/clang/include/clang/intrin/Makefile index 6489566bcb1..a4632f00f37 100644 --- a/gnu/usr.bin/clang/include/clang/intrin/Makefile +++ b/gnu/usr.bin/clang/include/clang/intrin/Makefile @@ -29,7 +29,6 @@ HEADERS=adxintrin.h \ cuda_builtin_vars.h \ emmintrin.h \ f16cintrin.h \ - float.h \ fma4intrin.h \ fmaintrin.h \ fxsrintrin.h \ @@ -37,10 +36,6 @@ HEADERS=adxintrin.h \ htmxlintrin.h \ ia32intrin.h \ immintrin.h \ - Intrin.h \ - inttypes.h \ - iso646.h \ - limits.h \ lzcntintrin.h \ mm3dnow.h \ mmintrin.h \ @@ -55,20 +50,10 @@ HEADERS=adxintrin.h \ s390intrin.h \ shaintrin.h \ smmintrin.h \ - stdalign.h \ - stdarg.h \ - stdatomic.h \ - stdbool.h \ - stddef.h \ __stddef_max_align_t.h \ - stdint.h \ - stdnoreturn.h \ tbmintrin.h \ - tgmath.h \ tmmintrin.h \ - unwind.h \ vadefs.h \ - varargs.h \ vecintrin.h \ __wmmintrin_aes.h \ wmmintrin.h \