+++ /dev/null
-* __aligned_u64 definition
-* patch from http://www.zytor.com/pipermail/klibc/2011-November/003151.html
---- a/klibc/usr/include/sys/types.h
-+++ b/klibc/usr/include/sys/types.h
-@@ -100,6 +100,10 @@ typedef uint16_t __sum16;
- typedef uint32_t __sum32;
- typedef uint64_t __sum64;
-
-+#define __aligned_u64 __u64 __attribute__((aligned(8)))
-+#define __aligned_be64 __be64 __attribute__((aligned(8)))
-+#define __aligned_le64 __le64 __attribute__((aligned(8)))
-+
- /*
- * Some headers seem to require this...
- */
-diff -urN klibc-1.1.16.org/klcc/Kbuild klibc-1.1.16/klcc/Kbuild
---- klibc-1.1.16.org/klcc/Kbuild 2006-01-06 07:11:43.000000000 +0100
-+++ klibc-1.1.16/klcc/Kbuild 2006-01-06 19:31:36.327836000 +0100
-@@ -22,10 +22,10 @@
- $(Q)echo 'EMAIN=$(KLIBCEMAIN)' >> $@
+--- klibc-2.0.9/klcc/Kbuild.orig 2021-05-09 17:11:57.600121311 +0200
++++ klibc-2.0.9/klcc/Kbuild 2021-05-09 17:12:54.373071231 +0200
+@@ -24,10 +24,10 @@ $(obj)/$(KLIBCCROSS)klibc.config: $(src)
+ $(Q)echo 'CRTSHARED=$(notdir $(KLIBCCRTSHARED))' >> $@
$(Q)echo 'BITSIZE=$(KLIBCBITSIZE)' >> $@
$(Q)echo 'VERSION=$(shell cat $(srctree)/usr/klibc/version)' >> $@
- $(Q)echo 'prefix=$(INSTALLDIR)' >> $@
Source0: https://www.kernel.org/pub/linux/libs/klibc/2.0/%{name}-%{version}.tar.xz
# Source0-md5: 7554a9759ae71e9ba3729991c8ae7f63
Patch0: %{name}-klcc.patch
-Patch1: aligned_u64.patch
URL: https://lists.zytor.com/klibc/
# ld.bfd binary
BuildRequires: binutils >= 2.20.51.0.6
%prep
%setup -q
%patch0 -p1
-%patch1 -p2
%build
cd usr/include