diff options
author | NeilBrown <neilb@suse.de> | 2010-08-06 12:11:43 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2010-08-06 12:11:43 +0200 |
commit | 5d40884d6b88db7dff80de25adafc54bb721e431 (patch) | |
tree | 84ec28d5dd7028ad5ccbdc9d0f1c1b3e12241fbb /Makefile | |
parent | Fix compiler warning concering bad use of snprintf. (diff) | |
download | mdadm-5d40884d6b88db7dff80de25adafc54bb721e431.tar.xz mdadm-5d40884d6b88db7dff80de25adafc54bb721e431.zip |
Don't link mdadm with pthreads
Only mdmon needs pthreads, so link accordingly.
Signed-off-by: NeilBrown <neilb@suse.de>
Reported-by: martin f krafft <madduck@madduck.net>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -80,7 +80,7 @@ CFLAGS = $(CWFLAGS) $(CXFLAGS) -DSendmail=\""$(MAILCMD)"\" $(CONFFILEFLAGS) $(DI USE_PTHREADS = 1 ifdef USE_PTHREADS CFLAGS += -DUSE_PTHREADS -LDFLAGS += -pthread +MON_LDFLAGS += -pthread endif # If you want a static binary, you might uncomment these @@ -163,11 +163,11 @@ mdadm.O2 : $(SRCS) mdadm.h mdmon.O2 $(CC) -o mdadm.O2 $(CFLAGS) $(LDFLAGS) -DHAVE_STDINT_H -O2 -D_FORTIFY_SOURCE=2 $(SRCS) mdmon.O2 : $(MON_SRCS) mdadm.h mdmon.h - $(CC) -o mdmon.O2 $(CFLAGS) $(LDFLAGS) -DHAVE_STDINT_H -O2 -D_FORTIFY_SOURCE=2 $(MON_SRCS) + $(CC) -o mdmon.O2 $(CFLAGS) $(LDFLAGS) $(MON_LDFLAGS) -DHAVE_STDINT_H -O2 -D_FORTIFY_SOURCE=2 $(MON_SRCS) # use '-z now' to guarantee no dynamic linker interactions with the monitor thread mdmon : $(MON_OBJS) - $(CC) $(LDFLAGS) -z now -o mdmon $(MON_OBJS) $(LDLIBS) + $(CC) $(LDFLAGS) $(MON_LDFLAGS) -z now -o mdmon $(MON_OBJS) $(LDLIBS) msg.o: msg.c msg.h test_stripe : restripe.c mdadm.h |