/recipes/elfkickers/elfkickers-2.0a/gentoo.patch

https://github.com/dlazzari/openembedded · Patch · 105 lines · 92 code · 13 blank · 0 comment · 0 complexity · 65a7291d3386a2c43915f548ad4ed187 MD5 · raw file

  1. diff -Nru ELFkickers.orig/Makefile ELFkickers/Makefile
  2. --- ELFkickers.orig/Makefile 1969-12-31 19:00:00.000000000 -0500
  3. +++ ELFkickers/Makefile 2003-07-25 15:25:04.000000000 -0400
  4. @@ -0,0 +1,7 @@
  5. +SUBDIRS = ebfc elfls elftoc rebind sstrip tiny
  6. +
  7. +all:
  8. + for d in $(SUBDIRS); do cd $$d ; CFLAGS="$(CFLAGS)" CC=$(CC) make ; cd - ; done
  9. +clean:
  10. +
  11. + for d in $(SUBDIRS); do cd $$d ; make clean; cd - ; done
  12. diff -Nru ELFkickers.orig/ebfc/Makefile ELFkickers/ebfc/Makefile
  13. --- ELFkickers.orig/ebfc/Makefile 2001-01-17 08:23:56.000000000 -0500
  14. +++ ELFkickers/ebfc/Makefile 2003-07-25 15:18:55.000000000 -0400
  15. @@ -1,8 +1,5 @@
  16. # Makefile for ebfc
  17. -CC = gcc
  18. -CFLAGS = -ggdb -Wall
  19. -
  20. ebfc: ebfc.o brainfuck.o libelfparts.a
  21. ebfc.o: ebfc.c elfparts.h ebfc.h
  22. diff -Nru ELFkickers.orig/ebfc/rel.c ELFkickers/ebfc/rel.c
  23. --- ELFkickers.orig/ebfc/rel.c 2001-03-19 10:50:18.000000000 -0500
  24. +++ ELFkickers/ebfc/rel.c 2003-07-25 15:16:08.000000000 -0400
  25. @@ -5,6 +5,7 @@
  26. */
  27. #include <stdlib.h>
  28. +#include <string.h>
  29. #include <linux/elf.h>
  30. #include "elfparts.h"
  31. #include "gen.h"
  32. diff -Nru ELFkickers.orig/elfls/Makefile ELFkickers/elfls/Makefile
  33. --- ELFkickers.orig/elfls/Makefile 1999-07-07 23:57:55.000000000 -0400
  34. +++ ELFkickers/elfls/Makefile 2003-07-25 15:20:11.000000000 -0400
  35. @@ -1,7 +1,7 @@
  36. # Makefile for elfls
  37. elfls: elfls.c
  38. - gcc -ggdb -Wall -W -o elfls elfls.c
  39. + $(CC) $(CFLAGS) -W -o elfls elfls.c
  40. clean:
  41. rm -f elfls
  42. diff -Nru ELFkickers.orig/elfls/elfls.c ELFkickers/elfls/elfls.c
  43. --- ELFkickers.orig/elfls/elfls.c 2001-03-28 08:23:57.000000000 -0500
  44. +++ ELFkickers/elfls/elfls.c 2003-07-25 15:16:08.000000000 -0400
  45. @@ -4,6 +4,7 @@
  46. #include <stdio.h>
  47. #include <stdlib.h>
  48. +#include <string.h>
  49. #include <errno.h>
  50. #include <stdarg.h>
  51. #include <unistd.h>
  52. diff -Nru ELFkickers.orig/elftoc/Makefile ELFkickers/elftoc/Makefile
  53. --- ELFkickers.orig/elftoc/Makefile 2001-03-26 05:48:59.000000000 -0500
  54. +++ ELFkickers/elftoc/Makefile 2003-07-25 15:21:00.000000000 -0400
  55. @@ -1,9 +1,5 @@
  56. # Makefile for elftoc
  57. -CC = gcc
  58. -CFLAGS = -ggdb -Wall
  59. -LDFLAGS = $(CFLAGS)
  60. -
  61. OBJS = pieces.o addr.o shdrtab.o dynamic.o outbasic.o outtools.o out.o elftoc.o
  62. elftoc: $(OBJS)
  63. diff -Nru ELFkickers.orig/elftoc/shdrtab.c ELFkickers/elftoc/shdrtab.c
  64. --- ELFkickers.orig/elftoc/shdrtab.c 2001-03-25 08:09:09.000000000 -0500
  65. +++ ELFkickers/elftoc/shdrtab.c 2003-07-25 15:16:08.000000000 -0400
  66. @@ -5,6 +5,7 @@
  67. */
  68. #include <stdlib.h>
  69. +#include <string.h>
  70. #include <ctype.h>
  71. #include "gen.h"
  72. #include "elf.h"
  73. diff -Nru ELFkickers.orig/rebind/Makefile ELFkickers/rebind/Makefile
  74. --- ELFkickers.orig/rebind/Makefile 2001-03-19 10:08:56.000000000 -0500
  75. +++ ELFkickers/rebind/Makefile 2003-07-25 15:21:26.000000000 -0400
  76. @@ -1,7 +1,7 @@
  77. # Makefile for rebind
  78. rebind: rebind.c
  79. - gcc -ggdb -Wall -W -o rebind rebind.c
  80. + $(CC) $(CFLAGS) -W -o rebind rebind.c
  81. clean:
  82. rm -f rebind
  83. diff -Nru ELFkickers.orig/sstrip/Makefile ELFkickers/sstrip/Makefile
  84. --- ELFkickers.orig/sstrip/Makefile 2001-03-24 06:58:27.000000000 -0500
  85. +++ ELFkickers/sstrip/Makefile 2003-07-25 15:21:47.000000000 -0400
  86. @@ -1,7 +1,7 @@
  87. # Makefile for sstrip
  88. sstrip: sstrip.c
  89. - gcc -ggdb -Wall -W -o sstrip sstrip.c
  90. + $(CC) $(CFLAGS) -W -o sstrip sstrip.c
  91. clean:
  92. rm -f sstrip