summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xConfigure5
1 files changed, 4 insertions, 1 deletions
diff --git a/Configure b/Configure
index 0253fdb40f..a813f968e5 100755
--- a/Configure
+++ b/Configure
@@ -4422,7 +4422,10 @@ EOM
sunos) dflt='-pic' ;;
*) dflt='none' ;;
esac ;;
- *) dflt='-fpic' ;;
+ *) case "$osname/$ccflags" in
+ solaris/*-DDEBUGGING*) dflt='-fPIC' ;;
+ *) dflt='-fpic' ;;
+ esac ;;
esac ;;
*) dflt="$cccdlflags" ;;
esac