# Conditional build:
%bcond_without shared # don't build shared lib support
%bcond_with nptl # libpthread: NPTL instead of LinuxThreads (experimental; no i386)
-%bcond_with verbose # verbose mode
+%bcond_without verbose # verbose mode
#
%ifarch alpha
%undefine with_shared
Summary: C library optimized for size
Summary(pl.UTF-8): Biblioteka C zoptymalizowana na rozmiar
Name: uClibc
-Version: 0.9.33
-Release: 1
+Version: 0.9.33.2
+Release: 34
Epoch: 4
License: LGPL v2.1
Group: Libraries
Source0: http://uclibc.org/downloads/%{name}-%{version}.tar.xz
-# Source0-md5: 940b411bfac938a77d25a86cb53d67ff
+# Source0-md5: 73e6fe215648d02246f4d195b25fb17e
Patch0: %{name}-newsoname.patch
Patch1: %{name}-toolchain-wrapper.patch
Patch2: %{name}-targetcpu.patch
Patch3: %{name}-debug.patch
Patch4: %{name}-stdio-unhide.patch
+Patch5: %{name}-kernel-types.patch
+Patch6: %{name}-features.patch
URL: http://uclibc.org/
BuildRequires: binutils >= 2.16
BuildRequires: cpp
%define specflags -fgnu89-inline
%endif
+%define filterout -fstack-protector -fstack-protector-strong --param=ssp-buffer-size=4
+
%define uclibc_root /usr/%{_target_cpu}-linux-uclibc
%description
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
+%patch6 -p1
# ARCH is already determined by uname -m
%ifarch %{ix86}
# HAS_NO_THREADS is not set
%{!?with_nptl:LINUXTHREADS_OLD=y}
%{?with_nptl:UCLIBC_HAS_THREADS_NATIVE=y}
+UCLIBC_HAS_IPV4=y
UCLIBC_HAS_IPV6=y
DO_C99_MATH=y
UCLIBC_HAS_RPC=y
UCLIBC_HAS_PRINTF_M_SPEC=y
UCLIBC_SUSV3_LEGACY=y
UCLIBC_SUSV3_LEGACY_MACROS=y
+UCLIBC_SUSV4_LEGACY=y
+UCLIBC_USE_NETLINK=y
+UCLIBC_SUPPORT_AI_ADDRCONFIG=y
+UCLIBC_HAS_RESOLVER_SUPPORT=y
+UCLIBC_HAS_LIBRESOLV_STUB=y
+UCLIBC_HAS_COMPAT_RES_STATE=y
+UCLIBC_HAS_EXTRA_COMPAT_RES_STATE=y
# DOSTRIP is not set
%{?debug:DODEBUG=y}
%{?debug:SUPPORT_LD_DEBUG=y}