This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]