001-disable-elftoc-compilation.patch 718 B

12345678910111213141516171819202122232425262728
  1. From: Rui Salvaterra <[email protected]>
  2. Subject: sstrip: don't try to compile elftoc
  3. We only need sstrip itself and elftoc doesn't compile with musl's elf.h, so
  4. disable the elftoc compilation in the makefile.
  5. Signed-off-by: Rui Salvaterra <[email protected]>
  6. ---
  7. --- a/Makefile
  8. +++ b/Makefile
  9. @@ -2,7 +2,7 @@
  10. prefix = /usr/local
  11. -PROGRAMS = elfls objres rebind sstrip elftoc ebfc infect
  12. +PROGRAMS = elfls objres rebind sstrip ebfc infect
  13. all: $(PROGRAMS)
  14. @@ -19,7 +19,6 @@ elfls: bin/elfls doc/elfls.1
  15. objres: bin/objres doc/objres.1
  16. rebind: bin/rebind doc/rebind.1
  17. sstrip: bin/sstrip doc/sstrip.1
  18. -elftoc: bin/elftoc doc/elftoc.1
  19. ebfc: bin/ebfc doc/ebfc.1
  20. infect: bin/infect doc/infect.1