respect LDFLAGS when linking programs
PATCH 1/1 respect LDFLAGS when linking programs
From: "Robin H. Johnson" <[email protected]>
Signed-off-by Robin H. Johnson <[email protected]>
Signed-off-by Mike Frysinger <[email protected]>
--- Makefile | 10 +++++----- btreplay/Makefile | 4 ++-- btt/Makefile | 2 +- iowatcher/Makefile | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-)
Makefile +5 -5
@@ -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
btreplay/Makefile +2 -2
@@ -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
btt/Makefile +1 -1
@@ -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
iowatcher/Makefile +1 -1
@@ -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
Signature · 1 line
2.15.1
Jens Axboe
AppliedQuoted 10 lines · Mike Frysinger
From: "Robin H. Johnson" <[email protected]>
Signed-off-by Robin H. Johnson <[email protected]>Signed-off-by Mike Frysinger <[email protected]>--- Makefile | 10 +++++----- btreplay/Makefile | 4 ++-- btt/Makefile | 2 +- iowatcher/Makefile | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-)
Applied, thanks.
Signature · 1 line
Jens Axboe