- Fix linking with libpthread (#564775)

This commit is contained in:
Eric Sandeen 2010-02-13 18:28:01 +00:00
parent 432ae45d1a
commit 372c65e254
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,13 @@
Index: blktrace-1.0.1/btreplay/Makefile
===================================================================
--- blktrace-1.0.1.orig/btreplay/Makefile
+++ blktrace-1.0.1/btreplay/Makefile
@@ -13,7 +13,7 @@ XCFLAGS = -D_GNU_SOURCE -D_LARGEFILE_SOU
override CFLAGS += $(INCS) $(XCFLAGS) $(OCFLAGS)
PROGS = btrecord btreplay
-LIBS = -laio -lrt
+LIBS = -laio -lrt -lpthread
all: depend $(PROGS)

View File

@ -1,7 +1,7 @@
Summary: Utilities for performing block layer IO tracing in the linux kernel Summary: Utilities for performing block layer IO tracing in the linux kernel
Name: blktrace Name: blktrace
Version: 1.0.1 Version: 1.0.1
Release: 3%{?dist} Release: 4%{?dist}
License: GPLv2+ License: GPLv2+
Group: Development/System Group: Development/System
Source: http://brick.kernel.dk/snaps/blktrace-%{version}.tar.bz2 Source: http://brick.kernel.dk/snaps/blktrace-%{version}.tar.bz2
@ -11,6 +11,8 @@ Requires: python
BuildRequires: libaio-devel python texlive-latex dvipdfm BuildRequires: libaio-devel python texlive-latex dvipdfm
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Patch0: blktrace-1.0.1-explicit-libpthread.patch
%description %description
blktrace is a block layer IO tracing mechanism which provides detailed blktrace is a block layer IO tracing mechanism which provides detailed
information about request queue operations to user space. This package information about request queue operations to user space. This package
@ -23,6 +25,8 @@ information about IO patterns.
%prep %prep
%setup -q %setup -q
%patch0 -p1
%build %build
make CFLAGS="%{optflags}" all make CFLAGS="%{optflags}" all
make CFLAGS="%{optflags}" docs make CFLAGS="%{optflags}" docs
@ -43,6 +47,9 @@ rm -rf %{buildroot}
%attr(0644,root,root) /usr/share/man/man8/* %attr(0644,root,root) /usr/share/man/man8/*
%changelog %changelog
* Sat Feb 13 2010 Eric Sandeen <sandeen@redhat.com> - 1.0.1-4
- Fix linking with libpthread (#564775)
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-3 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild