003-fix-makefile.patch 466 B

123456789101112131415161718
  1. --- a/Makefile
  2. +++ b/Makefile
  3. @@ -30,9 +30,13 @@ all: $(TARGETS)
  4. tftpd: tftpd.o tftpsubs.o
  5. -arping: arping.o -lsysfs
  6. +arping: arping.o
  7. + $(CC) $(CFLAGS) -o $@ arping.o -lsysfs
  8. ping: ping.o ping_common.o
  9. -ping6: ping6.o ping_common.o -lresolv -lcrypto
  10. +ping6: ping6.o ping_common.o
  11. +ifneq ($(CONFIG_USE_UCLIBC),y)
  12. + $(CC) $(CFLAGS) -o $@ ping6.o ping_common.o -lresolv -lcrypto
  13. +endif
  14. ping.o ping6.o ping_common.o: ping_common.h
  15. tftpd.o tftpsubs.o: tftp.h