[packages/uClibc] Rel 38; try to workaround 'Your binutils do not support --hash-style option, while you want to use i

arekm arekm at pld-linux.org
Fri Apr 22 10:12:18 CEST 2022


commit 83380ab9549d749fdfce371f030090942294442a
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri Apr 22 10:11:33 2022 +0200

    Rel 38; try to workaround 'Your binutils do not support --hash-style option, while you want to use it. Stop.'

 hash-style-detect.patch | 11 +++++++++++
 uClibc.spec             |  4 +++-
 2 files changed, 14 insertions(+), 1 deletion(-)
---
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}
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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/uClibc.git/commitdiff/83380ab9549d749fdfce371f030090942294442a



More information about the pld-cvs-commit mailing list