From: eSyr <evgsyr at gmail.com>
To: powertop@lists.01.org
Subject: [Powertop] [PATCH] Checking whether librt is needed for clock_gettime().
Date: Tue, 02 Aug 2016 06:29:53 +0300 [thread overview]
Message-ID: <20160802032949.GA18501@obsidian> (raw)
[-- Attachment #1: Type: text/plain, Size: 898 bytes --]
Commit ef79e28 introduced usage of clock_gettime() function, which,
unfortunately, breaks build on some systems, namely Debian Wheezy, due
to the fact it should be linked with librt. This commit adds configure
check whether additional library is needed in order to use
aforementioned function.
* configure.ac: using AC_SEARCH_LIBS() for checking whether librt is
needed for clock_gettime().
---
configure.ac | 2 ++
1 file changed, 2 insertions(+)
diff --git a/configure.ac b/configure.ac
index 088d0de..7573d84 100644
--- a/configure.ac
+++ b/configure.ac
@@ -106,6 +106,8 @@ AC_CHECK_FUNCS([ \
strtoull \
])
+AC_SEARCH_LIBS([clock_gettime], [rt])
+
PKG_CHECK_MODULES([NCURSES], [ncursesw ncurses], [LIBS="$LIBS $ncurses_LIBS"], [
AC_SEARCH_LIBS([delwin], [ncursesw ncurses], [], [
AC_MSG_ERROR([ncurses is required but was not found])
--
1.7.10.4
next reply other threads:[~2016-08-02 3:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-08-02 3:29 eSyr [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-08-03 15:31 [Powertop] [PATCH] Checking whether librt is needed for clock_gettime() Joe Konno
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=20160802032949.GA18501@obsidian \
--to=powertop@lists.01.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