From: NeilBrown Date: Fri, 3 Sep 2010 03:33:29 +0000 (+1000) Subject: Fix compile error on non-x86 systems. X-Git-Tag: mdadm-3.1.5~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8efb9d16ac4026ca237a2d887240543b1763b634;p=thirdparty%2Fmdadm.git Fix compile error on non-x86 systems. -z is not an option for 'gcc', it is an option for the loader!! Reported-by: Debian build system Signed-off-by: NeilBrown --- diff --git a/Makefile b/Makefile index e2c65a5d..0cc9a87c 100644 --- 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) -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