/usr/src/gcc-4.4/debian/patches/gcc-lfs.diff is in gcc-4.4-source 4.4.7-8ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 | # DP: Check for large file support (backport from 4.6).
gcc/
2010-11-02 Ian Lance Taylor <iant@google.com>
* configure.ac: Use AC_SYS_LARGEFILE.
* configure: Rebuild.
* config.in: Rebuild.
2010-11-11 Paolo Bonzini <bonzini@gnu.org>
* Makefile.in (gengtype-lex.c): Include bconfig.h first.
libcpp/
2010-11-02 Ian Lance Taylor <iant@google.com>
* configure.ac: Use AC_SYS_LARGEFILE.
* configure: Rebuild.
* config.in: Rebuild.
--- a/src/gcc/configure.ac
+++ b/src/gcc/configure.ac
@@ -303,6 +303,8 @@
AC_PROG_CPP
AC_C_INLINE
+AC_SYS_LARGEFILE
+
# sizeof(char) is 1 by definition.
AC_CHECK_SIZEOF(void *)
AC_CHECK_SIZEOF(short)
--- a/src/gcc/config.in
+++ b/src/gcc/config.in
@@ -1546,6 +1546,18 @@
#endif
+/* Number of bits in a file offset, on hosts where this is settable. */
+#ifndef USED_FOR_TARGET
+#undef _FILE_OFFSET_BITS
+#endif
+
+
+/* Define for large files, on AIX-style hosts. */
+#ifndef USED_FOR_TARGET
+#undef _LARGE_FILES
+#endif
+
+
/* Define to 1 if on MINIX. */
#ifndef USED_FOR_TARGET
#undef _MINIX
--- a/src/gcc/Makefile.in
+++ b/src/gcc/Makefile.in
@@ -3457,7 +3457,11 @@
# Generated source files for gengtype.
gengtype-lex.c : gengtype-lex.l
- -$(FLEX) $(FLEXFLAGS) -o$@ $<
+ -$(FLEX) $(FLEXFLAGS) -o$@ $< && { \
+ echo '#include "bconfig.h"' > $@.tmp; \
+ cat $@ >> $@.tmp; \
+ mv $@.tmp $@; \
+ }
#
# Remake internationalization support.
--- a/src/libcpp/configure.ac
+++ b/src/libcpp/configure.ac
@@ -13,6 +13,8 @@
AC_PROG_CC
AC_PROG_RANLIB
+AC_SYS_LARGEFILE
+
MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
AC_CHECK_PROGS([ACLOCAL], [aclocal], [$MISSING aclocal])
AC_CHECK_PROGS([AUTOCONF], [autoconf], [$MISSING autoconf])
--- a/src/libcpp/config.in
+++ b/src/libcpp/config.in
@@ -266,6 +266,12 @@
/* Define to 1 if your <sys/time.h> declares `struct tm'. */
#undef TM_IN_SYS_TIME
+/* Number of bits in a file offset, on hosts where this is settable. */
+#undef _FILE_OFFSET_BITS
+
+/* Define for large files, on AIX-style hosts. */
+#undef _LARGE_FILES
+
/* Define to empty if `const' does not conform to ANSI C. */
#undef const
|