guile-1.8.8-gcc5.patch 575 B

12345678910111213141516
  1. Preprocessor changes in GCC 5 cause guile-snarf to output garbage.
  2. https://bugs.gentoo.org/560736
  3. --- a/libguile/guile-snarf.in
  4. +++ b/libguile/guile-snarf.in
  5. @@ -50,7 +50,7 @@
  6. ## Apparently, AIX's preprocessor is unhappy if you try to #include an
  7. ## empty file.
  8. echo "/* cpp arguments: $@ */" ;
  9. - ${cpp} -DSCM_MAGIC_SNARF_INITS -DSCM_MAGIC_SNARFER "$@" > ${temp} && cpp_ok_p=true
  10. + ${cpp} -P -DSCM_MAGIC_SNARF_INITS -DSCM_MAGIC_SNARFER "$@" > ${temp} && cpp_ok_p=true
  11. grep "^ *\^ *\^" ${temp} | sed -e "s/^ *\^ *\^//" -e "s/\^\ *:\ *\^.*/;/"
  12. }