]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Merge config/picflag.m4 from gcc
authorAlan Modra <amodra@gmail.com>
Wed, 4 Jan 2023 03:06:24 +0000 (13:36 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 4 Jan 2023 11:44:03 +0000 (22:14 +1030)
config/picflag.m4
libiberty/configure

index 3bd49af00e57e6385f2210ec88087acf0d93e2eb..3f3ac744c96c6a875539d69b5191377c333367e7 100644 (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.
        ;;
index 79ef15312e244cf7d96ad45c775cdbf8dca0036a..1ccfac9fb11f334926f253d284b03a8335d94b2e 100755 (executable)
@@ -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.