[X86] Change -fpic to -fPIC in PICFLAG
This commit is contained in:
parent
b0b2be147a
commit
884123a069
39
0001-X86-Change-fpic-to-fPIC-in-PICFLAG.patch
Normal file
39
0001-X86-Change-fpic-to-fPIC-in-PICFLAG.patch
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
From 8fb95e58ea6b2c2fddd0b308acdc160dda217b7b Mon Sep 17 00:00:00 2001
|
||||||
|
From: eastb233 <xiezhiheng@huawei.com>
|
||||||
|
Date: Tue, 8 Aug 2023 20:05:24 +0800
|
||||||
|
Subject: [PATCH] [X86] Change -fpic to -fPIC in PICFLAG
|
||||||
|
|
||||||
|
---
|
||||||
|
intl/configure | 2 +-
|
||||||
|
libiberty/configure | 2 +-
|
||||||
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/intl/configure b/intl/configure
|
||||||
|
index e75f072f..f8438526 100755
|
||||||
|
--- a/intl/configure
|
||||||
|
+++ b/intl/configure
|
||||||
|
@@ -6867,7 +6867,7 @@ case "${host}" in
|
||||||
|
# Some targets support both -fPIC and -fpic, but prefer the latter.
|
||||||
|
# FIXME: Why?
|
||||||
|
i[34567]86-*-* | x86_64-*-*)
|
||||||
|
- PICFLAG=-fpic
|
||||||
|
+ PICFLAG=-fPIC
|
||||||
|
;;
|
||||||
|
# FIXME: Override -fPIC default in libgcc only?
|
||||||
|
sh-*-linux* | sh[2346lbe]*-*-linux*)
|
||||||
|
diff --git a/libiberty/configure b/libiberty/configure
|
||||||
|
index 1ccfac9f..0b85f351 100755
|
||||||
|
--- a/libiberty/configure
|
||||||
|
+++ b/libiberty/configure
|
||||||
|
@@ -5362,7 +5362,7 @@ case "${host}" in
|
||||||
|
# Some targets support both -fPIC and -fpic, but prefer the latter.
|
||||||
|
# FIXME: Why?
|
||||||
|
i[34567]86-*-* | x86_64-*-*)
|
||||||
|
- PICFLAG=-fpic
|
||||||
|
+ PICFLAG=-fPIC
|
||||||
|
;;
|
||||||
|
# FIXME: Override -fPIC default in libgcc only?
|
||||||
|
sh-*-linux* | sh[2346lbe]*-*-linux*)
|
||||||
|
--
|
||||||
|
2.19.1
|
||||||
|
|
||||||
@ -2,7 +2,7 @@
|
|||||||
Summary: A GNU collection of binary utilities
|
Summary: A GNU collection of binary utilities
|
||||||
Name: binutils%{?_with_debug:-debug}
|
Name: binutils%{?_with_debug:-debug}
|
||||||
Version: 2.40
|
Version: 2.40
|
||||||
Release: 1
|
Release: 2
|
||||||
License: GPL-3.0-or-later
|
License: GPL-3.0-or-later
|
||||||
URL: https://sourceware.org/binutils
|
URL: https://sourceware.org/binutils
|
||||||
|
|
||||||
@ -279,6 +279,10 @@ Patch21: binutils-CVE-2023-1972.patch
|
|||||||
# Lifetime: Fixed in 2.41 (maybe)
|
# Lifetime: Fixed in 2.41 (maybe)
|
||||||
Patch22: binutils-gold-empty-dwp.patch
|
Patch22: binutils-gold-empty-dwp.patch
|
||||||
|
|
||||||
|
|
||||||
|
#### Other patches
|
||||||
|
Patch23: 0001-X86-Change-fpic-to-fPIC-in-PICFLAG.patch
|
||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
|
|
||||||
Provides: bundled(libiberty)
|
Provides: bundled(libiberty)
|
||||||
@ -1306,6 +1310,9 @@ exit 0
|
|||||||
|
|
||||||
#----------------------------------------------------------------------------
|
#----------------------------------------------------------------------------
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 08 2023 eastb233 <xiezhiheng@huawei.com> - 2.40-2
|
||||||
|
- In X86, change -fpic to -fPIC in PICFLAG
|
||||||
|
|
||||||
* Wed Aug 02 2023 eastb233 <xiezhiheng@huawei.com> - 2.40-1
|
* Wed Aug 02 2023 eastb233 <xiezhiheng@huawei.com> - 2.40-1
|
||||||
- Init binutils 2.40
|
- Init binutils 2.40
|
||||||
- Reference: https://gitlab.com/redhat/centos-stream/rpms/binutils/-/tree/c10s/
|
- Reference: https://gitlab.com/redhat/centos-stream/rpms/binutils/-/tree/c10s/
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user