SHA256
1
0
forked from pool/libmicro

- Build with optflags

- Refresh patches
- Add libmicro-implicit-fortify-decl.patch

OBS-URL: https://build.opensuse.org/package/show/benchmark/libmicro?expand=0&rev=12
This commit is contained in:
Martin Pluskal 2016-07-02 16:59:45 +00:00 committed by Git OBS Bridge
parent 5617c7c213
commit 0d69feea95
3 changed files with 42 additions and 1 deletions

View File

@ -0,0 +1,36 @@
Index: mmap.c
===================================================================
--- mmap.c.orig
+++ mmap.c
@@ -32,6 +32,7 @@
#include <stdio.h>
#include <fcntl.h>
#include <strings.h>
+#include <string.h>
#include "libmicro.h"
Index: mprotect.c
===================================================================
--- mprotect.c.orig
+++ mprotect.c
@@ -34,6 +34,7 @@
#include <sys/mman.h>
#include <fcntl.h>
#include <strings.h>
+#include <string.h>
#include "libmicro.h"
Index: munmap.c
===================================================================
--- munmap.c.orig
+++ munmap.c
@@ -34,6 +34,7 @@
#include <sys/mman.h>
#include <fcntl.h>
#include <strings.h>
+#include <string.h>
#include "libmicro.h"

View File

@ -3,6 +3,9 @@ Sat Jul 2 16:33:07 UTC 2016 - mpluskal@suse.com
- Update to latest mercurial snapshot (4.2.2+hg.20120726)
* lots of small changes
- Build with optflags
- Refresh patches
- Add libmicro-implicit-fortify-decl.patch
-------------------------------------------------------------------
Sat Feb 14 17:04:27 UTC 2015 - mpluskal@suse.com

View File

@ -27,6 +27,7 @@ Source0: %{name}-%{version}.tar.xz
Patch0: find_binary.patch
Patch1: removed_undefined_warning.patch
Patch2: fix-link.diff
Patch3: libmicro-implicit-fortify-decl.patch
Requires: gcc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -40,9 +41,10 @@ performance of various system and library calls.
%patch0
%patch1
%patch2
%patch3
%build
make %{?_smp_mflags}
make %{?_smp_mflags} CFLAGS="%{optflags}"
%install
rm bin-*/*.a