1
0

100-cross_compile.patch 817 B

12345678910111213141516171819
  1. --- a/Makefile
  2. +++ b/Makefile
  3. @@ -76,7 +76,6 @@ FAILED_SLOTS_DIR = /run/mdadm/failed-slo
  4. DIRFLAGS = -DMAP_DIR=\"$(MAP_DIR)\" -DMAP_FILE=\"$(MAP_FILE)\"
  5. DIRFLAGS += -DMDMON_DIR=\"$(MDMON_DIR)\"
  6. DIRFLAGS += -DFAILED_SLOTS_DIR=\"$(FAILED_SLOTS_DIR)\"
  7. -CFLAGS = $(CWFLAGS) $(CXFLAGS) -DSendmail=\""$(MAILCMD)"\" $(CONFFILEFLAGS) $(DIRFLAGS)
  8. # The glibc TLS ABI requires applications that call clone(2) to set up
  9. # TLS data structures, use pthreads until mdmon implements this support
  10. @@ -183,7 +182,7 @@ raid6check : raid6check.o mdadm.h $(CHEC
  11. mdassemble : $(ASSEMBLE_SRCS) $(INCL)
  12. rm -f $(OBJS)
  13. - $(DIET_GCC) $(ASSEMBLE_FLAGS) -o mdassemble $(ASSEMBLE_SRCS) $(STATICSRC)
  14. + $(CC) $(ASSEMBLE_FLAGS) -o mdassemble $(ASSEMBLE_SRCS) $(STATICSRC)
  15. mdassemble.static : $(ASSEMBLE_SRCS) $(INCL)
  16. rm -f $(OBJS)