--- /dev/null
+--- dietlibc-0.33/dietfeatures.h~ 2018-02-08 18:18:17.000000000 +0100
++++ dietlibc-0.33/dietfeatures.h 2018-02-08 18:21:02.388516769 +0100
+@@ -41,11 +41,6 @@
+ * string */
+ /* #define WANT_FULL_POSIX_COMPAT */
+
+-/* on i386, Linux has an alternate syscall method since 2002/12/16 */
+-/* on my Athlon XP, it is twice as fast, but it's only in kernel 2.5 */
+-/* 20040118: enabling this breaks User Mode Linux! It's their fault. */
+-#define WANT_SYSENTER
+-
+ #define WANT_LINKER_WARNINGS
+
+ /* you need to define this if you want to run your programs with large
-# NOTE: recent PLD kernels no longer support vsyscalls and dietlibc
-# uses vsyscall heavily, so your apps can stop working segfaulting with:
-# "vsyscall attempted with vsyscall=none ...."
-# in dmesg.
-
# Conditional build:
%bcond_without ssp # stack-smashing protector
%bcond_with dynamic # dynamic lib support
Summary(pt_BR.UTF-8): libc pequena otimizada para tamanho
Name: dietlibc
Version: 0.33
-Release: 4
+Release: 5
Epoch: 2
License: GPL v2
Group: Development/Libraries
Patch11: %{name}-devmacros.patch
Patch12: %{name}-notify.patch
Patch13: x32-fixes.patch
+Patch14: %{name}-no-vsyscall.patch
Patch100: git.patch
URL: http://www.fefe.de/dietlibc/
BuildRequires: rpmbuild(macros) >= 1.566
%patch11 -p1
%patch12 -p1
%patch13 -p1
+%patch14 -p1
%if "%{cc_version}" < "3.4"
%{__sed} -i -e '/CFLAGS/ s/-Wextra//' Makefile