ports/lang/gcc/11/patches/patch-gcc_config_t-openbsd

17 lines
512 B
Text

Make sure to include standard headers that are tightly bound
to the compiler, such as stdatomic.h
Index: gcc/config/t-openbsd
--- gcc/config/t-openbsd.orig
+++ gcc/config/t-openbsd
@@ -1,5 +1,9 @@
# We don't need GCC's own include files.
-USER_H = $(EXTRA_HEADERS)
+USER_H = $(srcdir)/ginclude/stdfix.h \
+ $(srcdir)/ginclude/stdnoreturn.h \
+ $(srcdir)/ginclude/stdalign.h \
+ $(srcdir)/ginclude/stdatomic.h \
+ $(EXTRA_HEADERS)
# OpenBSD-specific D support.
openbsd-d.o: $(srcdir)/config/openbsd-d.c