diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1999-10-24 21:48:02 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-10-24 21:48:02 +0000 |
commit | 75d72f2c8b64d5e89ae0080adfff19385a568f22 (patch) | |
tree | 40872d98d1f4e81307bb12b31b9023f05f41cd52 /hints/dec_osf.sh | |
parent | 9d001be838fe600501da2961d7e665c0b4691d00 (diff) | |
download | perl-75d72f2c8b64d5e89ae0080adfff19385a568f22.tar.gz |
Hints tweak.
p4raw-id: //depot/cfgperl@4446
Diffstat (limited to 'hints/dec_osf.sh')
-rw-r--r-- | hints/dec_osf.sh | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/hints/dec_osf.sh b/hints/dec_osf.sh index fd7f479d2a..65c6cb3441 100644 --- a/hints/dec_osf.sh +++ b/hints/dec_osf.sh @@ -62,7 +62,7 @@ # Configure Black Magic (TM) # reset _DEC_cc_style= -case "$cc" in +case "$cc -v 2>&1 | grep cc" in *gcc*) ;; # pass *) # compile something small: taint.c is fine for this. # the main point is the '-v' flag of 'cc'. @@ -80,7 +80,7 @@ case "$cc" in esac # be nauseatingly ANSI -case "$cc" in +case "$cc -v 2>&1 | grep gcc" in *gcc*) ccflags="$ccflags -ansi" ;; *) ccflags="$ccflags -std" @@ -93,7 +93,7 @@ esac # we want optimisation case "$optimize" in -'') case "$cc" in +'') case "$cc -v 2>&1 | grep gcc" in *gcc*) optimize='-O3' ;; *) case "$_DEC_cc_style" in @@ -207,17 +207,19 @@ pp_sys_cflags='ccflags="$ccflags -DNO_EFF_ONLY_OK"' cat > UU/usethreads.cbu <<'EOCBU' case "$usethreads" in $define|true|[yY]*) - # Threads interfaces changed with V4.0. - case "`uname -r`" in - *[123].*) - libswanted="$libswanted pthreads mach exc c_r" - ccflags="-threads $ccflags" + # Threads interfaces changed with V4.0. + case "$cc -v 2>&1 | grep gcc" in + *gcc*)ccflags="-D_REENTRANT $ccflags" ;; + *) case "`uname -r`" in + *[123].*) ccflags="-threads $ccflags" ;; + *) ccflags="-pthread $ccflags" ;; + esac ;; - *) - libswanted="$libswanted pthread exc" - ccflags="-pthread $ccflags" - ;; - esac + esac + case "`uname -r`" in + *[123].*) libswanted="$libswanted pthreads mach exc c_r" ;; + *) libswanted="$libswanted pthread exc" ;; + esac usemymalloc='n' ;; @@ -359,5 +361,3 @@ unset _DEC_cc_style # * Set -Olimit to 3200 because perl_yylex.c got too big # for the optimizer. # - - |