Merge config/picflag.m4 from gcc

This commit is contained in:
Alan Modra 2023-01-04 13:36:24 +10:30
parent 1061395368
commit 4a22a3348e
2 changed files with 4 additions and 3 deletions

View File

@ -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.
;;

4
libiberty/configure vendored
View File

@ -5368,9 +5368,7 @@ case "${host}" in
sh-*-linux* | sh[2346lbe]*-*-linux*)
PICFLAG=-fpic
;;
# FIXME: Simplify to sh*-*-netbsd*?
sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
sh64-*-netbsd* | sh64l*-*-netbsd*)
sh*-*-netbsd*)
PICFLAG=-fpic
;;
# Default to -fPIC unless specified otherwise.