cpp.patch 865 B

12345678910111213141516171819202122232425
  1. iffe depends on cc -E not inserting newlines between tokens
  2. https://build.opensuse.org/package/view_file/home:Andreas_Schwab:Factory/ksh/cpp.patch?expand=1
  3. --- a/src/cmd/INIT/iffe.sh
  4. +++ b/src/cmd/INIT/iffe.sh
  5. @@ -3427,7 +3427,7 @@
  6. (eval "$src") <&$nullin || e=1
  7. ;;
  8. mac*|nomac*)
  9. - if compile $cc -E $tmp.c <&$nullin >$tmp.i
  10. + if compile $cc -E -P $tmp.c <&$nullin >$tmp.i
  11. then sed -e '/<<[ ]*".*"[ ]*>>/!d' -e 's/<<[ ]*"//g' -e 's/"[ ]*>>//g' $tmp.i
  12. else e=1
  13. fi
  14. @@ -3718,7 +3718,7 @@
  15. <<\"#define $v\">> $v <<\"/* native $v */\">>
  16. <<\"#endif\">>
  17. #endif" > $tmp.c
  18. - if compile $cc -E $tmp.c <&$nullin >$tmp.i
  19. + if compile $cc -E -P $tmp.c <&$nullin >$tmp.i
  20. then sed -e '/<<[ ]*".*"[ ]*>>/!d' -e 's/<<[ ]*"//g' -e 's/"[ ]*>>//g' $tmp.i > $tmp.t
  21. if test -s $tmp.t
  22. then success