summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorAndy Dougherty <doughera@newton.phys.lafayette.edu>1997-08-13 11:00:37 +1200
committerTim Bunce <Tim.Bunce@ig.co.uk>1997-09-05 00:00:00 +1200
commit137a30823a8754a31051e7dd9a85a8dddd6e7670 (patch)
treef361575efd7ea578b3de9c358a762bd5c92d67d2 /hints
parent3dc9191ef901d5f8cc94e2b8b5b7ed25fdf80046 (diff)
downloadperl-137a30823a8754a31051e7dd9a85a8dddd6e7670.tar.gz
Improve dual-universe comments in hints/sunos_4_1.sh
On Tue, 12 Aug 1997, Tim Bunce wrote: > Here's the 5.004_03 trial 1 patch. 5.004_03 trial 1 included the following update to hints/sunos_4_1.sh: p5p-msgid: Pine.SUN.3.96.970812170358.14488E-100000@newton.phys
Diffstat (limited to 'hints')
-rw-r--r--hints/sunos_4_1.sh21
1 files changed, 20 insertions, 1 deletions
diff --git a/hints/sunos_4_1.sh b/hints/sunos_4_1.sh
index a040d366f5..5e4429e84d 100644
--- a/hints/sunos_4_1.sh
+++ b/hints/sunos_4_1.sh
@@ -41,12 +41,31 @@ EOM
# the problem. Other BSD platforms may have similar problems.
POSIX_cflags='ccflags="$ccflags -DSTRUCT_TM_HASZONE"'
+# The correct setting of groupstype depends on which version of the C
+# library is used. If you are in the 'System V environment'
+# (i.e. you have /usr/5bin ahead of /usr/bin in your PATH), and
+# you use Sun's cc compiler, then you'll pick up /usr/5bin/cc, which
+# links against the C library in /usr/5lib. This library has
+# groupstype='gid_t'.
+# If you are in the normal BSDish environment, then you'll pick up
+# /usr/ucb/cc, which links against the C library in /usr/lib. That
+# library has groupstype='int'.
+#
+# If you are using gcc, it links against the C library in /usr/lib
+# independent of whether or not you are in the 'System V environment'.
+# If you want to use the System V libraries, then you need to
+# manually set groupstype='gid_t' and add explicit references to
+# /usr/5lib when Configure prompts you for where to look for libraries.
+#
# check if user is in a bsd or system 5 type environment
if cat -b /dev/null 2>/dev/null
then # bsd
groupstype='int'
else # sys5
- groupstype='gid_t'
+ case "$cc" in
+ *gcc*) groupstype='int';; # gcc doesn't do anything special
+ *) groupstype='gid_t';; # /usr/5bin/cc pulls in /usr/5lib/ stuff.
+ esac
fi
# If you get the message "unresolved symbol '__lib_version' " while