Fix linking of fio executable.
PATCH 1/1 Fix linking of fio executable.
First of all make sure that $(LDFLAGS) are used during linking so that the user can set the linker's flags.
Then also make sure that libraries are listed after the objects, so that GNU ld's --as-needed option will not cause fio linking to fail.
--- Makefile | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
Makefile +2 -2
@@ -70,9 +70,9 @@ mandir = $(prefix)/man .c.o: $(QUIET_CC)$(CC) -o $@ -c $(CFLAGS) $(CPPFLAGS) $< - + fio: $(OBJS) - $(QUIET_CC)$(CC) $(CFLAGS) -o $@ $(LIBS) $(OBJS) + $(QUIET_CC)$(CC) $(LDFLAGS) $(CFLAGS) -o $@ $(OBJS) $(LIBS) depend: $(QUIET_DEP)$(CC) -MM $(CFLAGS) $(CPPFLAGS) $(SOURCE) 1> .depend
Signature · 1 line
1.7.4.1