Add Makefile patch
This commit is contained in:
parent
57ecb881d5
commit
df1912a451
11
numad-0.5git-pthread.patch
Normal file
11
numad-0.5git-pthread.patch
Normal file
@ -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
|
@ -13,6 +13,7 @@ URL: http://git.fedorahosted.org/git/?p=numad.git
|
|||||||
# git clone git://git.fedorahosted.org/numad.git numad-0.5git
|
# git clone git://git.fedorahosted.org/numad.git numad-0.5git
|
||||||
# tar cJf numad-0.5git.tar.xz numad-0.5git/
|
# tar cJf numad-0.5git.tar.xz numad-0.5git/
|
||||||
Source0: %{name}-%{version}git.tar.xz
|
Source0: %{name}-%{version}git.tar.xz
|
||||||
|
Patch0: numad-0.5git-pthread.patch
|
||||||
|
|
||||||
Requires: systemd-units, initscripts
|
Requires: systemd-units, initscripts
|
||||||
Requires(post): systemd-units, initscripts
|
Requires(post): systemd-units, initscripts
|
||||||
@ -28,6 +29,7 @@ and memory to minimize memory latency and thus provide optimum performance.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}git
|
%setup -q -n %{name}-%{version}git
|
||||||
|
%patch0 -p0
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make CFLAGS="-std=gnu99 -g" LDFLAGS="-lpthread"
|
make CFLAGS="-std=gnu99 -g" LDFLAGS="-lpthread"
|
||||||
@ -59,6 +61,7 @@ make install prefix=%{buildroot}/usr
|
|||||||
%changelog
|
%changelog
|
||||||
* Tue Oct 16 2012 Jan Synáček <jsynacek@redhat.com> - 0.5-7.20121015git
|
* Tue Oct 16 2012 Jan Synáček <jsynacek@redhat.com> - 0.5-7.20121015git
|
||||||
- Update to 20121015
|
- Update to 20121015
|
||||||
|
- Add Makefile patch
|
||||||
|
|
||||||
* Wed Aug 22 2012 Jan Synáček <jsynacek@redhat.com> - 0.5-6.20120522git
|
* Wed Aug 22 2012 Jan Synáček <jsynacek@redhat.com> - 0.5-6.20120522git
|
||||||
- add systemd-rpm macros
|
- add systemd-rpm macros
|
||||||
|
Loading…
Reference in New Issue
Block a user