patch-gcc_Makefile_in 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. $OpenBSD: patch-gcc_Makefile_in,v 1.1.1.1 2016/09/04 16:20:19 pascal Exp $
  2. Disable fixincludes madness
  3. --- gcc/Makefile.in.orig Fri Apr 15 13:49:39 2016
  4. +++ gcc/Makefile.in Tue Aug 23 18:14:33 2016
  5. @@ -261,9 +261,6 @@ endif
  6. NO_PIE_CFLAGS = @NO_PIE_CFLAGS@
  7. NO_PIE_FLAG = @NO_PIE_FLAG@
  8. -# We don't want to compile the compilers with -fPIE, it make PCH fail.
  9. -COMPILER += $(NO_PIE_CFLAGS)
  10. -
  11. # Link with -no-pie since we compile the compiler with -fno-PIE.
  12. LINKER += $(NO_PIE_FLAG)
  13. @@ -763,8 +760,6 @@ NO_PIE_FLAG_FOR_BUILD = @NO_PIE_FLAG_FOR_BUILD@
  14. BUILD_CFLAGS= @BUILD_CFLAGS@ -DGENERATOR_FILE
  15. BUILD_CXXFLAGS = @BUILD_CXXFLAGS@ -DGENERATOR_FILE
  16. BUILD_NO_PIE_CFLAGS = @BUILD_NO_PIE_CFLAGS@
  17. -BUILD_CFLAGS += $(BUILD_NO_PIE_CFLAGS)
  18. -BUILD_CXXFLAGS += $(BUILD_NO_PIE_CFLAGS)
  19. # Native compiler that we use. This may be C++ some day.
  20. COMPILER_FOR_BUILD = $(CXX_FOR_BUILD)
  21. @@ -2907,7 +2902,7 @@ stmp-fixinc: gsyslimits.h macro_list fixinc_list \
  22. gcc_dir=`${PWD_COMMAND}` ; \
  23. export TARGET_MACHINE srcdir SHELL MACRO_LIST && \
  24. cd $(build_objdir)/fixincludes && \
  25. - $(SHELL) ./fixinc.sh "$${gcc_dir}/$${fix_dir}" \
  26. + $(SHELL) -c true "$${gcc_dir}/$${fix_dir}" \
  27. $(SYSTEM_HEADER_DIR) $(OTHER_FIXINCLUDES_DIRS) ); \
  28. rm -f $${fix_dir}/syslimits.h; \
  29. if [ -f $${fix_dir}/limits.h ]; then \