aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/mdadm/files/fix-z-now.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/mdadm/files/fix-z-now.patch')
-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 00000000000..3cd606b5281
--- /dev/null
+++ b/meta/recipes-extended/mdadm/files/fix-z-now.patch
@@ -0,0 +1,15 @@
+Fix -z now is really a LD option, not a gcc option so use -Wl to pass it to LD
+
+Created-by: Saul Wold <saul.wold@intel.com>
+
+--- Makefile.orig 2010-08-31 13:52:46.277764099 -0700
++++ Makefile 2010-08-31 14:02:28.218014078 -0700
+@@ -167,7 +167,7 @@
+
+ # use '-z now' to guarantee no dynamic linker interactions with the monitor thread
+ mdmon : $(MON_OBJS)
+- $(CC) $(LDFLAGS) $(MON_LDFLAGS) -z now -o mdmon $(MON_OBJS) $(LDLIBS)
++ $(CC) $(LDFLAGS) $(MON_LDFLAGS) -Wl,-z,now -o mdmon $(MON_OBJS) $(LDLIBS)
+ msg.o: msg.c msg.h
+
+ test_stripe : restripe.c mdadm.h