diff --git a/libmicro-implicit-fortify-decl.patch b/libmicro-implicit-fortify-decl.patch new file mode 100644 index 0000000..ab2ed5a --- /dev/null +++ b/libmicro-implicit-fortify-decl.patch @@ -0,0 +1,36 @@ +Index: mmap.c +=================================================================== +--- mmap.c.orig ++++ mmap.c +@@ -32,6 +32,7 @@ + #include + #include + #include ++#include + + #include "libmicro.h" + +Index: mprotect.c +=================================================================== +--- mprotect.c.orig ++++ mprotect.c +@@ -34,6 +34,7 @@ + #include + #include + #include ++#include + + #include "libmicro.h" + +Index: munmap.c +=================================================================== +--- munmap.c.orig ++++ munmap.c +@@ -34,6 +34,7 @@ + #include + #include + #include ++#include + + #include "libmicro.h" + diff --git a/libmicro.changes b/libmicro.changes index d4524db..92aabf1 100644 --- a/libmicro.changes +++ b/libmicro.changes @@ -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 diff --git a/libmicro.spec b/libmicro.spec index a9fa88f..426de8c 100644 --- a/libmicro.spec +++ b/libmicro.spec @@ -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