ports/lang/gcc12/files/patch-gcc_jit_Make-lang.in
Lorenzo Salvadore f1957296ed
lang/gcc12: Fix conflict on libgccjit.h and libgccjit++.h
GCC 11, GCC 12 and GCC 13 install libgccjit.h and libgccjit++.h in the
same directory.

Fix conflict for lang/gcc12, which is soon to become GCC_DEFAULT, by
installing those files in a directory specific to GCC 12.

See also commit 0338e04504 that fixed the
conflict in the same way for lang/gcc11.

PR:		257060
2022-11-09 14:29:15 +01:00

14 lines
549 B
Text

--- gcc/jit/Make-lang.in.orig 2022-11-02 17:25:43 UTC
+++ gcc/jit/Make-lang.in
@@ -355,9 +355,9 @@ jit.install-headers: installdirs
# Install hooks:
jit.install-headers: installdirs
$(INSTALL_DATA) $(srcdir)/jit/libgccjit.h \
- $(DESTDIR)$(includedir)/libgccjit.h
+ $(DESTDIR)$(libsubincludedir)/libgccjit.h
$(INSTALL_DATA) $(srcdir)/jit/libgccjit++.h \
- $(DESTDIR)$(includedir)/libgccjit++.h
+ $(DESTDIR)$(libsubincludedir)/libgccjit++.h
ifneq (,$(findstring mingw,$(target)))
jit.install-common: installdirs jit.install-headers