[numad] Add Makefile patch
jsynacek
jsynacek at fedoraproject.org
Tue Oct 16 07:43:18 UTC 2012
commit df1912a4511ab4e478275768efd71cf248b732da
Author: Jan Synacek <jsynacek at redhat.com>
Date: Tue Oct 16 09:40:01 2012 +0200
Add Makefile patch
numad-0.5git-pthread.patch | 11 +++++++++++
numad.spec | 3 +++
2 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/numad-0.5git-pthread.patch b/numad-0.5git-pthread.patch
new file mode 100644
index 0000000..cc5974f
--- /dev/null
+++ b/numad-0.5git-pthread.patch
@@ -0,0 +1,11 @@
+--- Makefile.orig 2012-09-11 08:29:18.965821127 +0200
++++ Makefile 2012-09-11 08:29:29.391803358 +0200
+@@ -31,7 +31,7 @@
+
+ all: numad
+
+-numad: numad.o -lpthread -lrt
++numad: numad.o -lrt
+
+ AR ?= ar
+ RANLIB ?= ranlib
diff --git a/numad.spec b/numad.spec
index 633c9c6..eaa6882 100644
--- a/numad.spec
+++ b/numad.spec
@@ -13,6 +13,7 @@ URL: http://git.fedorahosted.org/git/?p=numad.git
# git clone git://git.fedorahosted.org/numad.git numad-0.5git
# tar cJf numad-0.5git.tar.xz numad-0.5git/
Source0: %{name}-%{version}git.tar.xz
+Patch0: numad-0.5git-pthread.patch
Requires: systemd-units, initscripts
Requires(post): systemd-units, initscripts
@@ -28,6 +29,7 @@ and memory to minimize memory latency and thus provide optimum performance.
%prep
%setup -q -n %{name}-%{version}git
+%patch0 -p0
%build
make CFLAGS="-std=gnu99 -g" LDFLAGS="-lpthread"
@@ -59,6 +61,7 @@ make install prefix=%{buildroot}/usr
%changelog
* Tue Oct 16 2012 Jan Synáček <jsynacek at redhat.com> - 0.5-7.20121015git
- Update to 20121015
+- Add Makefile patch
* Wed Aug 22 2012 Jan Synáček <jsynacek at redhat.com> - 0.5-6.20120522git
- add systemd-rpm macros
More information about the scm-commits
mailing list