diff options
author | Achim Bohnet <ach@rosat.mpe-garching.mpg.de> | 1997-01-24 11:58:24 +0100 |
---|---|---|
committer | Chip Salzenberg <chip@atlantic.net> | 1997-01-25 15:58:00 +1200 |
commit | 8e9643471d80e3c1c3ab1f79ca8cae097801e1c3 (patch) | |
tree | f650f26667d2bb86cbee283bf138ef4cc5282694 /hints/dec_osf.sh | |
parent | a3156fc308049f548fff2dc156ffab6b3688fec8 (diff) | |
download | perl-8e9643471d80e3c1c3ab1f79ca8cae097801e1c3.tar.gz |
New dec_osf.sh hints file
private-msgid: <9701241058.AA29550@o09.rosat.mpe-garching.mpg.de>
Diffstat (limited to 'hints/dec_osf.sh')
-rw-r--r-- | hints/dec_osf.sh | 94 |
1 files changed, 86 insertions, 8 deletions
diff --git a/hints/dec_osf.sh b/hints/dec_osf.sh index a85abff18c..47be434f6c 100644 --- a/hints/dec_osf.sh +++ b/hints/dec_osf.sh @@ -1,18 +1,96 @@ # hints/dec_osf.sh + +# +# How to make a DEBUGGING VERSION of perl for DECs cc compiler +# +# If you want to debug perl or want to send a +# stack trace for inclusion into an bug report, call +# Configure with the additional argument -Doptimize=-g2 +# or uncomment this assignment to "optimize": +# +#optimize=-g2 +# +# and (re)run Configure. Note: Configure will automatically +# add the often quoted -DDEBUGGING for you) +# + case "$optimize" in -'') - case "$cc" in - *gcc*) ;; - *) optimize='-O2 -Olimit 2900' ;; - esac - ;; +'') case "$cc" in + *gcc*) ;; + *) optimize='-O2 -Olimit 3200' ;; + esac + ;; esac +# both compilers are ANSI ccflags="$ccflags -DSTANDARD_C" +# dlopen() is in libc +libswanted="`echo $libswanted | sed -e 's/ dl / /'`" + # Check if it's a CMW version of OSF1 +# '-s' strips shared libraries, not useful for debugging if test `uname -s` = "MLS+"; then - lddlflags='-shared -expect_unresolved "*" -s' + case "$optimize" in + *-g*) lddlflags='-shared -expect_unresolved "*"' ;; + *) lddlflags='-shared -expect_unresolved "*" -s' ;; + esac else - lddlflags='-shared -expect_unresolved "*" -s -hidden' + case "$optimize" in + *-g*) lddlflags='-shared -expect_unresolved "*" -hidden' ;; + *) lddlflags='-shared -expect_unresolved "*" -s -hidden' ;; + esac fi + +# +# History: +# +# perl5.003_22: +# +# 23-Jan-1997 Achim Bohnet <ach@rosat.mpe-garching.mpg.de> +# +# * Added comments 'how to create a debugging version of perl' +# +# * Fixed logic of this script to prevent stripping of shared +# objects by the loader (see ld man page for -s) is debugging +# is set via the -g switch. +# +# +# 21-Jan-1997 Achim Bohnet <ach@rosat.mpe-garching.mpg.de> +# +# * now 'dl' is always removed from libswanted. Not only if +# optimize is an empty string. +# +# +# 17-Jan-1997 Achim Bohnet <ach@rosat.mpe-garching.mpg.de> +# +# * Removed 'dl' from libswanted: When the FreePort binary +# translator for Sun binaries is installed Configure concludes +# that it should use libdl.x.yz.fpx.so :-( +# Because the dlopen, dlclose,... calls are in the +# C library it not necessary at all to check for the +# dl library. Therefore dl is removed from libswanted. +# +# +# 1-Jan-1997 Achim Bohnet <ach@rosat.mpe-garching.mpg.de> +# +# * Set -Olimit to 3200 because perl_yylex.c got too big +# for the optimizer. +# + +#--------------------------------------------------------------------- + +# +# Where configure gets it wrong: +# +# - FUNCTIONS PROTOTYPES: Because the following search +# +# % grep _NO_PROTO /usr/include/sys/signal.h +# #ifndef _NO_PROTO +# #else /* _NO_PROTO */ +# #endif /* _NO_PROTO */ +# % +# +# is successful and because _NO_PROTO is not included already +# in the ccflags, Configure adds -D_NO_PROTO to ccflags. :-( +# |