summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/mdadm/files
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/mdadm/files')
-rw-r--r--meta/recipes-extended/mdadm/files/fix-z-now.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/meta/recipes-extended/mdadm/files/fix-z-now.patch b/meta/recipes-extended/mdadm/files/fix-z-now.patch
new file mode 100644
index 0000000000..3cd606b528
--- /dev/null
+++ b/meta/recipes-extended/mdadm/files/fix-z-now.patch
@@ -0,0 +1,15 @@
1Fix -z now is really a LD option, not a gcc option so use -Wl to pass it to LD
2
3Created-by: Saul Wold <saul.wold@intel.com>
4
5--- Makefile.orig 2010-08-31 13:52:46.277764099 -0700
6+++ Makefile 2010-08-31 14:02:28.218014078 -0700
7@@ -167,7 +167,7 @@
8
9 # use '-z now' to guarantee no dynamic linker interactions with the monitor thread
10 mdmon : $(MON_OBJS)
11- $(CC) $(LDFLAGS) $(MON_LDFLAGS) -z now -o mdmon $(MON_OBJS) $(LDLIBS)
12+ $(CC) $(LDFLAGS) $(MON_LDFLAGS) -Wl,-z,now -o mdmon $(MON_OBJS) $(LDLIBS)
13 msg.o: msg.c msg.h
14
15 test_stripe : restripe.c mdadm.h