mdadm: add patch to fix passing linker options to cc

Signed-off-by: Saul Wold <Saul.Wold@intel.com>
This commit is contained in:
Saul Wold
2010-08-31 14:55:34 -07:00
committed by Richard Purdie
parent 118c36466c
commit ff9f1021c8
2 changed files with 18 additions and 2 deletions

View File

@@ -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

View File

@@ -8,9 +8,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \
file://mdmon.c;beginline=4;endline=18;md5=af7d8444d9c4d3e5c7caac0d9d34039d \
file://mdadm.h;beglinlne=4;endline=22;md5=462bc9936ac0d3da110191a3f9994161"
PR = "r0"
PR = "r1"
SRC_URI = "${KERNELORG_MIRROR}/pub/linux/utils/raid/mdadm/${PN}-${PV}.tar.bz2"
SRC_URI = "${KERNELORG_MIRROR}/pub/linux/utils/raid/mdadm/${PN}-${PV}.tar.bz2 \
file://fix-z-now.patch;striplevel=0"
CFLAGS += "-fno-strict-aliasing"