fixmakefile2.awk 217 B

123456789101112131415
  1. /^XLIBS*/ || /^XREQS*/ {
  2. ORS="";
  3. for (n=1; n<=NF; n++) {
  4. if ($n ~ /-ldl/) {
  5. print "-lcompat "
  6. } else {
  7. print $n " "
  8. }
  9. }
  10. ORS="\n"; print "";
  11. }
  12. ! /^XLIBS*/ && ! /^XREQS*/ {
  13. print $0
  14. }