4 # How to make a DEBUGGING VERSION of perl for DECs cc compiler
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":
13 # and (re)run Configure. Note: Configure will automatically
14 # add the often quoted -DDEBUGGING for you)
20 *) optimize='-O2 -Olimit 3200' ;;
25 # both compilers are ANSI
26 ccflags="$ccflags -DSTANDARD_C"
29 libswanted="`echo $libswanted | sed -e 's/ dl / /'`"
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
35 *-g*) lddlflags='-shared -expect_unresolved "*"' ;;
36 *) lddlflags='-shared -expect_unresolved "*" -s' ;;
40 *-g*) lddlflags='-shared -expect_unresolved "*" -hidden' ;;
41 *) lddlflags='-shared -expect_unresolved "*" -s -hidden' ;;
50 # 23-Jan-1997 Achim Bohnet <ach@rosat.mpe-garching.mpg.de>
52 # * Added comments 'how to create a debugging version of perl'
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.
59 # 21-Jan-1997 Achim Bohnet <ach@rosat.mpe-garching.mpg.de>
61 # * now 'dl' is always removed from libswanted. Not only if
62 # optimize is an empty string.
65 # 17-Jan-1997 Achim Bohnet <ach@rosat.mpe-garching.mpg.de>
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.
75 # 1-Jan-1997 Achim Bohnet <ach@rosat.mpe-garching.mpg.de>
77 # * Set -Olimit to 3200 because perl_yylex.c got too big
81 #---------------------------------------------------------------------
84 # Where configure gets it wrong:
86 # - FUNCTIONS PROTOTYPES: Because the following search
88 # % grep _NO_PROTO /usr/include/sys/signal.h
90 # #else /* _NO_PROTO */
91 # #endif /* _NO_PROTO */
94 # is successful and because _NO_PROTO is not included already
95 # in the ccflags, Configure adds -D_NO_PROTO to ccflags. :-(