components/gcc49/patches/013-libcpp-Makefile.in.patch
changeset 5205 eaff9ab86216
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/gcc49/patches/013-libcpp-Makefile.in.patch	Wed Dec 16 20:20:50 2015 -0800
@@ -0,0 +1,26 @@
+# Stefan Teleman <[email protected]>
+# The various ./configure's in GCC keep playing with CFLAGS, CXXFLAGS
+# or CPPFLAGS, and this unsets LARGEFILE_SOURCE. THe result is that some
+# GCC libraries are built with LARGEFILE_SOURCE enabled, and some don't.
+# Make sure everything is built with LARGEFILE_SOURCE turned on.
+# Internal patch. Not submitted upstream yet.
+--- libcpp/Makefile.in	2014-10-30 01:28:58.000000000 -0700
++++ libcpp/Makefile.in	2015-08-05 05:31:02.842725301 -0700
+@@ -38,7 +38,7 @@
+ CXXFLAGS = @CXXFLAGS@
+ WARN_CXXFLAGS = @warn@ @WARN_PEDANTIC@ @WERROR@
+ CPP = @CPP@
+-CPPFLAGS = @CPPFLAGS@
++CPPFLAGS = @CPPFLAGS@ -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
+ EXEEXT = @EXEEXT@
+ GMSGFMT = @GMSGFMT@
+ INCINTL = @INCINTL@
+@@ -57,7 +57,7 @@
+ CXXDEPMODE = @CXXDEPMODE@
+ DEPDIR = @DEPDIR@
+ NOEXCEPTION_FLAGS = @noexception_flags@
+-PICFLAG = @PICFLAG@
++PICFLAG = @PICFLAG@ -fPIC -DPIC
+ 
+ datarootdir = @datarootdir@
+ datadir = @datadir@