From: Arkadiusz Miƛkiewicz Date: Fri, 22 Apr 2022 08:11:33 +0000 (+0200) Subject: Rel 38; try to workaround 'Your binutils do not support --hash-style option, while... X-Git-Tag: auto/th/uClibc-0.9.33.2-38 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=83380ab9549d749fdfce371f030090942294442a;p=packages%2FuClibc.git Rel 38; try to workaround 'Your binutils do not support --hash-style option, while you want to use it. Stop.' --- diff --git a/hash-style-detect.patch b/hash-style-detect.patch new file mode 100644 index 0000000..f5245f2 --- /dev/null +++ b/hash-style-detect.patch @@ -0,0 +1,11 @@ +--- uClibc-0.9.33.2/Rules.mak~ 2022-04-22 10:04:03.000000000 +0200 ++++ uClibc-0.9.33.2/Rules.mak 2022-04-22 10:08:16.933174949 +0200 +@@ -170,7 +170,7 @@ check_as=$(shell \ + if $(CC) -Wa,$(1) -Wa,-Z -c -o /dev/null -xassembler /dev/null > /dev/null 2>&1; \ + then echo "-Wa,$(1)"; fi) + check_ld=$(shell \ +- if $(LD) $(1) -o /dev/null -b binary /dev/null > /dev/null 2>&1; \ ++ if $(LD) $(1) -o /dev/null -b binary /dev/zero > /dev/null 2>&1; \ + then echo "$(1)"; fi) + + # Use variable indirection here so that we can have variable diff --git a/uClibc.spec b/uClibc.spec index 71bf2d4..dbbc839 100644 --- a/uClibc.spec +++ b/uClibc.spec @@ -12,7 +12,7 @@ Summary: C library optimized for size Summary(pl.UTF-8): Biblioteka C zoptymalizowana na rozmiar Name: uClibc Version: 0.9.33.2 -Release: 37 +Release: 38 Epoch: 4 License: LGPL v2.1 Group: Libraries @@ -25,6 +25,7 @@ Patch3: %{name}-debug.patch Patch4: %{name}-stdio-unhide.patch Patch5: %{name}-kernel-types.patch Patch6: %{name}-features.patch +Patch7: hash-style-detect.patch URL: http://uclibc.org/ BuildRequires: binutils >= 2.16 BuildRequires: cpp @@ -97,6 +98,7 @@ Biblioteki statyczne uClibc. %patch4 -p1 %patch5 -p1 %patch6 -p1 +%patch7 -p1 # ARCH is already determined by uname -m %ifarch %{ix86}