p4raw-id: //depot/maint-5.005/perl@3196
$define|true|[yY]*)
ccflags="$ccflags -DNEED_PTHREAD_INIT"
case "$cc" in
- xlc_r) ;;
- cc)
- echo >&4 "Switching cc to xlc_r because of POSIX threads."
- cc=xlc_r
+ cc_r) ;;
+ cc|xlc_r)
+ echo >&4 "Switching cc to cc_r because of POSIX threads."
+ # xlc_r has been known to produce buggy code in AIX 4.3.2.
+ # (e.g. pragma/overload core dumps)
+ # --jhi@iki.fi
+ cc=cc_r
;;
- '' | cc_r)
- cc=xlc_r
+ '')
+ cc=cc_r
;;
*)
cat >&4 <<EOM
-For pthreads you should use the AIX C compiler xlc_r.
+For pthreads you should use the AIX C compiler cc_r.
(now your compiler was '$cc')
Cannot continue, aborting.
EOM