summaryrefslogtreecommitdiff
path: root/config/picflag.m4
diff options
context:
space:
mode:
Diffstat (limited to 'config/picflag.m4')
-rw-r--r--config/picflag.m47
1 files changed, 6 insertions, 1 deletions
diff --git a/config/picflag.m4 b/config/picflag.m4
index 614421d2a94..2f5b9721eb2 100644
--- a/config/picflag.m4
+++ b/config/picflag.m4
@@ -27,6 +27,10 @@ case "${$2}" in
;;
i[[34567]]86-*-mingw* | x86_64-*-mingw*)
;;
+ i[[34567]]86-*-interix[[3-9]]*)
+ # Interix 3.x gcc -fpic/-fPIC options generate broken code.
+ # Instead, we relocate shared libraries at runtime.
+ ;;
i[[34567]]86-*-nto-qnx*)
# QNX uses GNU C++, but need to define -shared option too, otherwise
# it will coredump.
@@ -57,7 +61,8 @@ case "${$2}" in
$1=-fpic
;;
# FIXME: Simplify to sh*-*-netbsd*?
- sh-*-netbsdelf* | shl*-*-netbsdelf*)
+ sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
+ sh64-*-netbsd* | sh64l*-*-netbsd*)
$1=-fpic
;;
# Default to -fPIC unless specified otherwise.