equal
deleted
inserted
replaced
1 # Stefan Teleman <[email protected]> |
|
2 # The various ./configure's in GCC keep playing with CFLAGS, CXXFLAGS |
|
3 # or CPPFLAGS, and this unsets LARGEFILE_SOURCE. THe result is that some |
|
4 # GCC libraries are built with LARGEFILE_SOURCE enabled, and some don't. |
|
5 # Make sure everything is built with LARGEFILE_SOURCE turned on. |
|
6 # Internal patch. Not submitted upstream. |
|
7 --- gcc/Makefile.in 2014-10-16 06:50:42.000000000 -0700 |
|
8 +++ gcc/Makefile.in 2015-09-08 22:46:03.588376656 -0700 |
|
9 @@ -206,6 +206,12 @@ |
|
10 |
|
11 CPPFLAGS = @CPPFLAGS@ |
|
12 |
|
13 +ifeq (,$(findstring m32,$(CPPFLAGS))) |
|
14 + CPPFLAGS += -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 |
|
15 +else |
|
16 + CPPFLAGS += -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 |
|
17 +endif |
|
18 + |
|
19 AWK = @AWK@ |
|
20 CC = @CC@ |
|
21 CXX = @CXX@ |
|