From: "Diego Elio Pettenò" <flameeyes@gmail.com>
To: fio@vger.kernel.org
Cc: "Diego Elio Pettenò" <flameeyes@gmail.com>
Subject: [PATCH] Fix linking of fio executable.
Date: Mon, 21 Mar 2011 15:59:49 +0100 [thread overview]
Message-ID: <1300719589-7779-1-git-send-email-flameeyes@gmail.com> (raw)
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(-)
diff --git a/Makefile b/Makefile
index 07e011e..1d81562 100644
--- a/Makefile
+++ b/Makefile
@@ -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
--
1.7.4.1
next reply other threads:[~2011-03-21 15:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-21 14:59 Diego Elio Pettenò [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-03-21 15:36 [PATCH] Fix linking of fio executable Diego Elio Pettenò
2011-03-21 19:14 ` Jens Axboe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1300719589-7779-1-git-send-email-flameeyes@gmail.com \
--to=flameeyes@gmail.com \
--cc=fio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox