From ff9f1021c854b9752dd962595c113253475b8e65 Mon Sep 17 00:00:00 2001 From: Saul Wold Date: Tue, 31 Aug 2010 14:55:34 -0700 Subject: mdadm: add patch to fix passing linker options to cc Signed-off-by: Saul Wold --- meta/recipes-extended/mdadm/files/fix-z-now.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 meta/recipes-extended/mdadm/files/fix-z-now.patch (limited to 'meta/recipes-extended/mdadm/files') 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 000000000..3cd606b52 --- /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 + +--- 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 -- cgit v1.2.3