summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorHallvard B Furuseth <h.b.furuseth@usit.uio.no>1997-04-09 00:00:00 +0000
committerChip Salzenberg <chip@atlantic.net>1997-04-15 00:00:00 +1200
commit81d89818b14a58709196b737cc40cc7e9778b89d (patch)
tree0454fa38797c78faafbeb54f2bad2c17a72ab903 /Configure
parent5cc330c87f9e28573cadb3255b068abf37e4fdd2 (diff)
downloadperl-81d89818b14a58709196b737cc40cc7e9778b89d.tar.gz
Use '-fPIC' for debugging compiles under Solaris with gcc
Diffstat (limited to 'Configure')
-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