upgrade mdadm package
[openwrt/svn-archive/archive.git] / utils / mdadm / patches / 001-makefile-fixes.patch
1 Index: mdadm-3.2/Makefile
2 ===================================================================
3 --- mdadm-3.2.orig/Makefile
4 +++ mdadm-3.2/Makefile
5 @@ -76,7 +76,6 @@ FAILED_SLOTS_DIR = /dev/.mdadm/failed-sl
6 DIRFLAGS = -DMAP_DIR=\"$(MAP_DIR)\" -DMAP_FILE=\"$(MAP_FILE)\"
7 DIRFLAGS += -DMDMON_DIR=\"$(MDMON_DIR)\"
8 DIRFLAGS += -DFAILED_SLOTS_DIR=\"$(FAILED_SLOTS_DIR)\"
9 -CFLAGS = $(CWFLAGS) $(CXFLAGS) -DSendmail=\""$(MAILCMD)"\" $(CONFFILEFLAGS) $(DIRFLAGS)
10
11 # The glibc TLS ABI requires applications that call clone(2) to set up
12 # TLS data structures, use pthreads until mdmon implements this support
13 @@ -184,7 +183,7 @@ test_stripe : restripe.c mdadm.h
14
15 mdassemble : $(ASSEMBLE_SRCS) $(INCL)
16 rm -f $(OBJS)
17 - $(DIET_GCC) $(ASSEMBLE_FLAGS) -o mdassemble $(ASSEMBLE_SRCS) $(STATICSRC)
18 + $(CC) $(ASSEMBLE_FLAGS) -o mdassemble $(ASSEMBLE_SRCS) $(STATICSRC)
19
20 mdassemble.static : $(ASSEMBLE_SRCS) $(INCL)
21 rm -f $(OBJS)