[binutils-gdb] Merge config/picflag.m4 from gcc
Alan Modra
amodra@sourceware.org
Wed Jan 4 03:42:48 GMT 2023
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6f3674d7e5e570bbbddee88756e64d67469894ac
commit 6f3674d7e5e570bbbddee88756e64d67469894ac
Author: Alan Modra <amodra@gmail.com>
Date: Wed Jan 4 13:22:55 2023 +1030
Merge config/picflag.m4 from gcc
and regen libiberty/configure
Diff:
---
config/picflag.m4 | 3 +++
libiberty/configure | 3 +++
2 files changed, 6 insertions(+)
diff --git a/config/picflag.m4 b/config/picflag.m4
index 3bd49af00e5..3f3ac744c96 100644
--- a/config/picflag.m4
+++ b/config/picflag.m4
@@ -44,6 +44,9 @@ case "${$2}" in
# sets the default TLS model and affects inlining.
$1=-fPIC
;;
+ loongarch*-*-*)
+ $1=-fpic
+ ;;
mips-sgi-irix6*)
# PIC is the default.
;;
diff --git a/libiberty/configure b/libiberty/configure
index 451af4978e7..1ccfac9fb11 100755
--- a/libiberty/configure
+++ b/libiberty/configure
@@ -5349,6 +5349,9 @@ case "${host}" in
# sets the default TLS model and affects inlining.
PICFLAG=-fPIC
;;
+ loongarch*-*-*)
+ PICFLAG=-fpic
+ ;;
mips-sgi-irix6*)
# PIC is the default.
;;
More information about the Binutils-cvs
mailing list