diff options
author | Saul Wold <Saul.Wold@intel.com> | 2010-08-31 14:55:34 -0700 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-02 09:50:49 +0100 |
commit | ff9f1021c854b9752dd962595c113253475b8e65 (patch) | |
tree | 8e15ad8eb24fb759f9da7b73d23be36a2934e68e /meta/recipes-extended/mdadm | |
parent | 118c36466cd786823d2b8e4968b79a6597b2649b (diff) | |
download | poky-ff9f1021c854b9752dd962595c113253475b8e65.tar.gz |
mdadm: add patch to fix passing linker options to cc
Signed-off-by: Saul Wold <Saul.Wold@intel.com>
Diffstat (limited to 'meta/recipes-extended/mdadm')
-rw-r--r-- | meta/recipes-extended/mdadm/files/fix-z-now.patch | 15 | ||||
-rw-r--r-- | meta/recipes-extended/mdadm/mdadm_3.1.4.bb | 5 |
2 files changed, 18 insertions, 2 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 @@ | |||
1 | Fix -z now is really a LD option, not a gcc option so use -Wl to pass it to LD | ||
2 | |||
3 | Created-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 | ||
diff --git a/meta/recipes-extended/mdadm/mdadm_3.1.4.bb b/meta/recipes-extended/mdadm/mdadm_3.1.4.bb index b28e96b759..94c4f6cde9 100644 --- a/meta/recipes-extended/mdadm/mdadm_3.1.4.bb +++ b/meta/recipes-extended/mdadm/mdadm_3.1.4.bb | |||
@@ -8,9 +8,10 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3 \ | |||
8 | file://mdmon.c;beginline=4;endline=18;md5=af7d8444d9c4d3e5c7caac0d9d34039d \ | 8 | file://mdmon.c;beginline=4;endline=18;md5=af7d8444d9c4d3e5c7caac0d9d34039d \ |
9 | file://mdadm.h;beglinlne=4;endline=22;md5=462bc9936ac0d3da110191a3f9994161" | 9 | file://mdadm.h;beglinlne=4;endline=22;md5=462bc9936ac0d3da110191a3f9994161" |
10 | 10 | ||
11 | PR = "r0" | 11 | PR = "r1" |
12 | 12 | ||
13 | SRC_URI = "${KERNELORG_MIRROR}/pub/linux/utils/raid/mdadm/${PN}-${PV}.tar.bz2" | 13 | SRC_URI = "${KERNELORG_MIRROR}/pub/linux/utils/raid/mdadm/${PN}-${PV}.tar.bz2 \ |
14 | file://fix-z-now.patch;striplevel=0" | ||
14 | 15 | ||
15 | CFLAGS += "-fno-strict-aliasing" | 16 | CFLAGS += "-fno-strict-aliasing" |
16 | 17 | ||