Change 11301 by jhi@alpha on 2001/07/12 12:36:46
Subject: Re: HiRes on AIX 4.2 in threaded mode
From: "H.Merijn Brand" <[EMAIL PROTECTED]>
Date: Thu, 12 Jul 2001 12:16:16 +0200
Message-Id: <[EMAIL PROTECTED]>
Affected files ...
... //depot/perl/hints/aix.sh#66 edit
Differences ...
==== //depot/perl/hints/aix.sh#66 (text) ====
Index: perl/hints/aix.sh
--- perl/hints/aix.sh.~1~ Thu Jul 12 06:45:06 2001
+++ perl/hints/aix.sh Thu Jul 12 06:45:06 2001
@@ -475,21 +475,25 @@
*) ldflags="$ldflags -brtl" ;;
esac
else
- # If the C++ libraries, libC and libC_r, are available we will prefer them
- # over the vanilla libc, because the libC contain loadAndInit() and
- # terminateAndUnload() which work correctly with C++ statics while libc
- # load() and unload() do not. See ext/DynaLoader/dl_aix.xs.
- # The C-to-C_r switch is done by usethreads.cbu, if needed.
- if test -f /lib/libC.a -a X"`$cc -v 2>&1 | grep gcc`" = X; then
- # Cify libswanted.
- set `echo X "$libswanted "| sed -e 's/ c / C c /'`
- shift
- libswanted="$*"
- # Cify lddlflags.
- set `echo X "$lddlflags "| sed -e 's/ -lc / -lC -lc /'`
- shift
- lddlflags="$*"
- fi
+ case `oslevel` in
+ 4.2.*) ;; # libC_r has broke gettimeofday
+ *) # If the C++ libraries, libC and libC_r, are available we will
+ # prefer them over the vanilla libc, because the libC contain
+ # loadAndInit() and terminateAndUnload() which work correctly
+ # with C++ statics while libc load() and unload() do not. See
+ # ext/DynaLoader/dl_aix.xs. The C-to-C_r switch is done by
+ # usethreads.cbu, if needed.
+ if test -f /lib/libC.a -a X"`$cc -v 2>&1 | grep gcc`" = X; then
+ # Cify libswanted.
+ set `echo X "$libswanted "| sed -e 's/ c / C c /'`
+ shift
+ libswanted="$*"
+ # Cify lddlflags.
+ set `echo X "$lddlflags "| sed -e 's/ -lc / -lC -lc /'`
+ shift
+ lddlflags="$*"
+ fi
+ esac
fi
# EOF
End of Patch.