This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[LTO][PATCH] Add -D_LARGEFILE64_SOURCE to lto-plugin
- From: simonb at google dot com (Simon Baldwin)
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 21 May 2009 10:11:06 +0100 (BST)
- Subject: [LTO][PATCH] Add -D_LARGEFILE64_SOURCE to lto-plugin
This patch adds -D_LARGEFILE64_SOURCE to lto-plugin compilation, and fixes
a problem that can occur where there is no off64_t typedef yet one is
required by libelf.h. An off64_t typedef is assured with this change.
Confirmed with bootstrap on i386 and x86_64.
lto-plugin/ChangeLog
2009-05-21 Simon Baldwin <simonb@google.com>
* Makefile.in: Added -D_LARGEFILE64_SOURCE to AM_CPPFLAGS.
* Makefile.in: Regenerate.
Index: lto-plugin/Makefile.in
===================================================================
--- lto-plugin/Makefile.in (revision 147761)
+++ lto-plugin/Makefile.in (working copy)
@@ -214,7 +214,7 @@ target_subdir = @target_subdir@
gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
libexecsubdir := $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version)
AM_CPPFLAGS = -I$(top_srcdir)/../include -D_LARGEFILE_SOURCE \
- -D_FILE_OFFSET_BITS=64
+ -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
AM_CFLAGS = -Wall -Werror
ltosymtab_SOURCES = lto-symtab.c $(top_srcdir)/../gcc/lto/common.c
Index: lto-plugin/Makefile.am
===================================================================
--- lto-plugin/Makefile.am (revision 147761)
+++ lto-plugin/Makefile.am (working copy)
@@ -3,7 +3,7 @@ target_noncanonical := @target_noncanoni
libexecsubdir := $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version)
AM_CPPFLAGS = -I$(top_srcdir)/../include -D_LARGEFILE_SOURCE \
- -D_FILE_OFFSET_BITS=64
+ -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
AM_CFLAGS = -Wall -Werror