This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[commit] Fix HP/UX ftello64 config; Was: [Fwd: Re: Time for a HP/PAhackathon?]
- From: Andrew Cagney <cagney at gnu dot org>
- To: Alan Modra <amodra at bigpond dot net dot au>
- Cc: binutils at sources dot redhat dot com,Michael Elizabeth Chastain <mec dot gnu at mindspring dot com>
- Date: Sat, 14 Feb 2004 10:40:05 -0500
- Subject: [commit] Fix HP/UX ftello64 config; Was: [Fwd: Re: Time for a HP/PAhackathon?]
- References: <402DA0B4.9040706@gnu.org> <20040214042019.GC2648@bubble.modra.org>
On Fri, Feb 13, 2004 at 11:14:44PM -0500, Andrew Cagney wrote:
First fallout from 64-bit off_t, it appears that HP/UX 11.xx build needs
--D_LARGEFILE64_SOURCE. Any suggestions on how to "correctly" do this?
Add it to HDEFINES in bfd/configure.host
Ok, I've checked in the attached.
Andrew
2004-02-14 Andrew Cagney <cagney@redhat.com>
* configure.host (HDEFINES): When hppa*-*-hpux*, define
_LARGEFILE64_SOURCE.
Index: configure.host
===================================================================
RCS file: /cvs/src/src/bfd/configure.host,v
retrieving revision 1.14
diff -u -r1.14 configure.host
--- configure.host 17 Oct 2003 02:15:53 -0000 1.14
+++ configure.host 14 Feb 2004 15:36:39 -0000
@@ -19,7 +19,11 @@
case "${host}" in
-hppa*-*-hpux*) HDEFINES=-DHOST_HPPAHPUX ;;
+hppa*-*-hpux*) # HP/UX's ftello64 et.al. declarations are only
+ # visible when _LARGEFILE64_SOURCE is defined.
+ # Without those declarations, real_ftell et.al.
+ # get mis-compiled.
+ HDEFINES="-DHOST_HPPAHPUX -D_LARGEFILE64_SOURCE" ;;
hppa*-*-hiux*) HDEFINES=-DHOST_HPPAHPUX ;;
hppa*-*-mpeix*) HDEFINES=-DHOST_HPPAMPEIX ;;
hppa*-*-bsd*) HDEFINES=-DHOST_HPPABSD ;;