1
0

gcc-cppflags.patch 1.1 KB

123456789101112131415161718192021222324
  1. diff -Nur gcc-4.8.2.orig/gcc/configure gcc-4.8.2/gcc/configure
  2. --- gcc-4.8.2.orig/gcc/configure 2013-06-19 03:18:38.000000000 +0200
  3. +++ gcc-4.8.2/gcc/configure 2014-03-03 15:05:00.647062804 +0100
  4. @@ -11204,7 +11204,7 @@
  5. esac
  6. saved_CFLAGS="${CFLAGS}"
  7. CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
  8. - LDFLAGS="${LDFLAGS_FOR_BUILD}" \
  9. + LDFLAGS="${LDFLAGS_FOR_BUILD}" CPPFLAGS="${CPPFLAGS_FOR_BUILD}" \
  10. ${realsrcdir}/configure \
  11. --enable-languages=${enable_languages-all} \
  12. --target=$target_alias --host=$build_alias --build=$build_alias
  13. diff -Nur gcc-4.8.2.orig/gcc/Makefile.in gcc-4.8.2/gcc/Makefile.in
  14. --- gcc-4.8.2.orig/gcc/Makefile.in 2013-07-08 11:14:34.000000000 +0200
  15. +++ gcc-4.8.2/gcc/Makefile.in 2014-03-03 15:13:22.021327933 +0100
  16. @@ -996,7 +996,7 @@
  17. # Likewise. Put INCLUDES at the beginning: this way, if some autoconf macro
  18. # puts -I options in CPPFLAGS, our include files in the srcdir will always
  19. # win against random include files in /usr/include.
  20. -ALL_CPPFLAGS = $(INCLUDES) $(CPPFLAGS)
  21. +ALL_CPPFLAGS = $(INCLUDES)
  22. # This is the variable to use when using $(COMPILER).
  23. ALL_COMPILERFLAGS = $(ALL_CXXFLAGS)