• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/blktrace/0001-iowatcher-link-with-lrt.patch
Thomas PetazzoniThomas Petazzoni committed 8972c398ff823 Aug 2016
Raw file
Source viewDiff to previous
 
1
From 80d87b99d72034441ea4fbab81f5c80c1ef3b067 Mon Sep 17 00:00:00 2001
2
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3
Date: Tue, 23 Aug 2016 16:36:14 +0200
4
Subject: [PATCH] iowatcher: link with -lrt
5
​
6
Some C libraries (notably uClibc) have the posix_spawn*() functions in
7
librt, so let's link iowatcher with -lrt.
8
​
9
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10
Upstream-status: merged
11
 (http://git.kernel.org/cgit/linux/kernel/git/axboe/blktrace.git/commit/?id=d1ab783430f5a832e973ed9a293da146c04c6702)
12
---
13
 iowatcher/Makefile | 2 +-
14
 1 file changed, 1 insertion(+), 1 deletion(-)
15
​
16
diff --git a/iowatcher/Makefile b/iowatcher/Makefile
17
index 7b5101c..502476d 100644
18
--- a/iowatcher/Makefile
19
+++ b/iowatcher/Makefile
20
@@ -19,7 +19,7 @@ all: $(ALL)
21
    $(CC) -o $*.o -c $(ALL_CFLAGS) $<
22
 
23
 iowatcher: blkparse.o plot.o main.o tracers.o mpstat.o fio.o
24
-   $(CC) $(ALL_CFLAGS) -o $@ $(filter %.o,$^) -lm
25
+   $(CC) $(ALL_CFLAGS) -o $@ $(filter %.o,$^) -lm -lrt
26
 
27
 depend:
28
    @$(CC) -MM $(ALL_CFLAGS) *.c 1> .depend
29
-- 
30
2.7.4
31
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.