From 4a22a3348e5ce06223be06cad49cbf3b2c274e9d Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 4 Jan 2023 13:36:24 +1030 Subject: Merge config/picflag.m4 from gcc --- config/picflag.m4 | 3 +++ libiberty/configure | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config/picflag.m4 b/config/picflag.m4 index 3bd49af..3f3ac74 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 79ef153..1ccfac9 100755 --- a/libiberty/configure +++ b/libiberty/configure @@ -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. -- cgit v1.1