This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Don't warn on C<$\ = undef>
[perl5.git] / hints / dec_osf.sh
1 # hints/dec_osf.sh
2
3 #
4 # How to make a DEBUGGING VERSION of perl for DECs cc compiler
5 #
6 #       If you want to debug perl or want to send a
7 #       stack trace for inclusion into an bug report, call
8 #       Configure with the additional argument  -Doptimize=-g2
9 #       or uncomment this assignment to "optimize":
10 #
11 #optimize=-g2
12 #
13 #       and (re)run Configure.  Note: Configure will automatically
14 #       add the often quoted -DDEBUGGING for you)
15 #
16
17 case "$optimize" in
18 '')     case "$cc" in 
19         *gcc*)  ;;
20         *)      optimize='-O2 -Olimit 3200' ;;
21         esac
22         ;;
23 esac
24
25 # both compilers are ANSI
26 ccflags="$ccflags -DSTANDARD_C"
27
28 # dlopen() is in libc
29 libswanted="`echo $libswanted | sed -e 's/ dl / /'`"
30
31 # Check if it's a CMW version of OSF1
32 # '-s' strips shared libraries, not useful for debugging
33 if test `uname -s` = "MLS+"; then
34     case "$optimize" in
35         *-g*) lddlflags='-shared -expect_unresolved "*"' ;;
36         *)    lddlflags='-shared -expect_unresolved "*" -s' ;;
37     esac
38 else
39     case "$optimize" in
40         *-g*) lddlflags='-shared -expect_unresolved "*" -hidden' ;;
41         *)    lddlflags='-shared -expect_unresolved "*" -s -hidden' ;;
42     esac
43 fi
44
45 #
46 # History:
47 #
48 # perl5.003_22:
49 #
50 #       23-Jan-1997 Achim Bohnet <ach@rosat.mpe-garching.mpg.de>
51 #
52 #       * Added comments 'how to create a debugging version of perl'
53 #
54 #       * Fixed logic of this script to prevent stripping of shared
55 #         objects by the loader (see ld man page for -s) is debugging
56 #         is set via the -g switch.
57 #
58 #
59 #       21-Jan-1997 Achim Bohnet <ach@rosat.mpe-garching.mpg.de>
60 #
61 #       * now 'dl' is always removed from libswanted. Not only if
62 #         optimize is an empty string.
63 #        
64 #
65 #       17-Jan-1997 Achim Bohnet <ach@rosat.mpe-garching.mpg.de>
66 #
67 #       * Removed 'dl' from libswanted: When the FreePort binary
68 #         translator for Sun binaries is installed Configure concludes
69 #         that it should use libdl.x.yz.fpx.so :-(
70 #         Because the dlopen, dlclose,... calls are in the
71 #         C library it not necessary at all to check for the
72 #         dl library.  Therefore dl is removed from libswanted.
73 #       
74 #
75 #       1-Jan-1997 Achim Bohnet <ach@rosat.mpe-garching.mpg.de>
76 #       
77 #       * Set -Olimit to 3200 because perl_yylex.c got too big
78 #         for the optimizer.
79 #
80
81 #---------------------------------------------------------------------
82
83 #
84 # Where configure gets it wrong:
85 #
86 #       - FUNCTIONS PROTOTYPES: Because the following search
87 #
88 #               % grep _NO_PROTO /usr/include/sys/signal.h
89 #               #ifndef _NO_PROTO
90 #               #else   /* _NO_PROTO */
91 #               #endif  /* _NO_PROTO */
92 #               %
93 #         
94 #         is successful and because _NO_PROTO is not included already
95 #         in the ccflags, Configure adds -D_NO_PROTO to ccflags. :-(
96 #