diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2018-01-23 17:47:19 -0500 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-01-23 15:56:12 -0700 |
commit | d1398e339585f6750f7158c50c98861b68dddc8b (patch) | |
tree | 6b699b3b472ac84a90adc67a8fa49b544eecd36a | |
parent | 8fc451c6b0b9a7db7c376ea6865c35321e561f00 (diff) | |
download | blktrace-d1398e339585f6750f7158c50c98861b68dddc8b.tar.gz |
respect LDFLAGS when linking programs
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r-- | Makefile | 10 | ||||
-rw-r--r-- | btreplay/Makefile | 4 | ||||
-rw-r--r-- | btt/Makefile | 2 | ||||
-rw-r--r-- | iowatcher/Makefile | 2 |
4 files changed, 9 insertions, 9 deletions
@@ -26,19 +26,19 @@ btreplay/btreplay: $(CC) -o $*.o -c $(ALL_CFLAGS) $< blkparse: blkparse.o blkparse_fmt.o rbtree.o act_mask.o - $(CC) $(ALL_CFLAGS) -o $@ $(filter %.o,$^) + $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(filter %.o,$^) blktrace: blktrace.o act_mask.o - $(CC) $(ALL_CFLAGS) -o $@ $(filter %.o,$^) $(LIBS) + $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(filter %.o,$^) $(LIBS) verify_blkparse: verify_blkparse.o - $(CC) $(ALL_CFLAGS) -o $@ $(filter %.o,$^) + $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(filter %.o,$^) blkrawverify: blkrawverify.o - $(CC) $(ALL_CFLAGS) -o $@ $(filter %.o,$^) + $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(filter %.o,$^) blkiomon: blkiomon.o rbtree.o - $(CC) $(ALL_CFLAGS) -o $@ $(filter %.o,$^) $(LIBS) -lrt + $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(filter %.o,$^) $(LIBS) -lrt $(PROGS): | depend diff --git a/btreplay/Makefile b/btreplay/Makefile index 2998182..f574a29 100644 --- a/btreplay/Makefile +++ b/btreplay/Makefile @@ -32,10 +32,10 @@ clean: docsclean $(CC) $(CFLAGS) -c -o $*.o $< btrecord: btrecord.o - $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(filter %.o,$^) btreplay: btreplay.o - $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) $(LIBS) + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(filter %.o,$^) $(LIBS) depend: @$(CC) -MM $(CFLAGS) *.c 1> .depend diff --git a/btt/Makefile b/btt/Makefile index df7a3de..3207557 100644 --- a/btt/Makefile +++ b/btt/Makefile @@ -38,7 +38,7 @@ clean: docsclean $(CC) $(CFLAGS) -c -o $*.o $< btt: $(OBJS) - $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) $(LIBS) + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(filter %.o,$^) $(LIBS) ifneq ($(wildcard .depend),) include .depend diff --git a/iowatcher/Makefile b/iowatcher/Makefile index e013556..a224a08 100644 --- a/iowatcher/Makefile +++ b/iowatcher/Makefile @@ -19,7 +19,7 @@ all: $(ALL) $(CC) -o $*.o -c $(ALL_CFLAGS) $< iowatcher: blkparse.o plot.o main.o tracers.o mpstat.o fio.o - $(CC) $(ALL_CFLAGS) -o $@ $(filter %.o,$^) -lm -lrt + $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(filter %.o,$^) -lm -lrt depend: @$(CC) -MM $(ALL_CFLAGS) *.c 1> .depend |