]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Fix compile error on non-x86 systems.
authorNeilBrown <neilb@suse.de>
Fri, 3 Sep 2010 03:33:29 +0000 (13:33 +1000)
committerNeilBrown <neilb@suse.de>
Fri, 3 Sep 2010 03:33:29 +0000 (13:33 +1000)
-z is not an option for 'gcc', it is an option for the loader!!

Reported-by: Debian build system
Signed-off-by: NeilBrown <neilb@suse.de>
Makefile

index e2c65a5defc9aff39b3b44cfd28b612228c8a846..0cc9a87c2b2de604f4794a27636de00d377e219f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -167,7 +167,7 @@ mdmon.O2 : $(MON_SRCS) mdadm.h mdmon.h
 
 # use '-z now' to guarantee no dynamic linker interactions with the monitor thread
 mdmon : $(MON_OBJS)
-       $(CC) $(LDFLAGS) $(MON_LDFLAGS) -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