logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

includes.patch (1066B)


  1. SPDX-FileCopyrightText: 2023 fosslinux <fosslinux@aussies.space>
  2. SPDX-License-Identifier: GPL-3.0-or-later
  3. Two fold issue.
  4. https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63966
  5. Pre-5.0 GCC does not have a cpuid.h header installed on the system, so
  6. we use the one from this source tree.
  7. https://stackoverflow.com/questions/22160093/inconsistent-operand-constraints-in-an-asm
  8. Pre-5.0 GCC does not support PIC inline ASM that touches ebx (as
  9. presumably the cpuid call does); so we must disable PIC.
  10. --- gcc-10.4.0/libgcc/Makefile.in 2023-01-25 16:03:45.928059755 +1100
  11. +++ gcc-10.4.0/libgcc/Makefile.in 2023-01-25 16:04:06.711464255 +1100
  12. @@ -282,7 +282,7 @@
  13. # subdirectory rather than in the source directory.
  14. # -I$(@D) and -I$(srcdir)/$(@D) cause the subdirectory of the file
  15. # currently being compiled, in both source trees, to be examined as well.
  16. -INCLUDES = -I. -I$(@D) -I$(gcc_objdir) \
  17. +INCLUDES = -I. -I$(@D) -I$(gcc_objdir) -I../../gcc/include -fno-pic \
  18. -I$(srcdir) -I$(srcdir)/$(@D) -I$(srcdir)/../gcc \
  19. -I$(srcdir)/../include $(DECNUMINC)