From: Jarkko Hietaniemi Date: Sat, 29 Mar 2003 07:23:00 +0000 (+0000) Subject: It seems that in Tru64 V5 gcc cannot be used to X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=700a71f52a8b687cd8507393838281605745411c;p=p5sagit%2Fp5-mst-13.2.git It seems that in Tru64 V5 gcc cannot be used to compile a threaded Perl because explicitly checks for supported compilers (gcc not being one of them). This is not so bad since the system C compiler is always there. p4raw-id: //depot/perl@19078 --- diff --git a/README.tru64 b/README.tru64 index d203ded..b1305ba 100644 --- a/README.tru64 +++ b/README.tru64 @@ -50,6 +50,11 @@ Perl threading is going to work only in Tru64 4.0 and newer releases, older operating releases like 3.2 aren't probably going to work properly with threads. +In Tru64 V5 (at least V5.1A, V5.1B) you cannot build threaded Perl with gcc +because the system header explicitly checks for supported +C compilers, gcc (at least 3.2.2) not being one of them. But the +system C compiler should work just fine. + =head2 Long Doubles on Tru64 You cannot Configure Perl to use long doubles unless you have at least diff --git a/hints/dec_osf.sh b/hints/dec_osf.sh index 5b15fad..f08c318 100644 --- a/hints/dec_osf.sh +++ b/hints/dec_osf.sh @@ -303,9 +303,32 @@ cat > UU/usethreads.cbu <<'EOCBU' # after it has prompted the user for whether to use threads. case "$usethreads" in $define|true|[yY]*) + # In Tru64 V5 (at least V5.1A, V5.1B) gcc (at least 3.2.2) + # cannot be used to compile a threaded Perl. + cat > pthread.c < +extern int foo; +EOF + $cc -c pthread.c 2> pthread.err + if grep -q "unrecognized compiler" pthread.err; then + cat >&4 <