components/gcc49/patches/014-libiberty-Makefile.in.patch
author Yiteng Zhang <yiteng.zhang@oracle.com>
Tue, 26 Jan 2016 13:08:18 -0800
changeset 5341 acafdc8d7dfc
parent 5205 eaff9ab86216
permissions -rw-r--r--
22494009 Python 3 fixes for pybonjour

# 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.
--- libiberty/Makefile.in	2013-05-31 17:20:49.000000000 -0700
+++ libiberty/Makefile.in	2015-08-05 05:31:33.530929188 -0700
@@ -56,12 +56,12 @@
 
 CC = @CC@
 CFLAGS = @CFLAGS@
-CPPFLAGS = @CPPFLAGS@
+CPPFLAGS = @CPPFLAGS@ -D_REENTRANT -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
 RANLIB = @RANLIB@
 MAKEINFO = @MAKEINFO@
 PERL = @PERL@
 
-PICFLAG = @PICFLAG@
+PICFLAG = @PICFLAG@ -fPIC -DPIC
 
 MAKEOVERRIDES =