Skip to content

Commit

Permalink
Move -D_FILE_OFFSET_BITS back to CFLAGS
Browse files Browse the repository at this point in the history
These should really go in CPPFLAGS, but apparently on mingw, there's defines
in the stdio headers that rename the function (rather than doing it on a symbol lelve), so we can't use this when we include LLVM headers. Anyway, as long as
we don't call the IO functions from C++ we should be fine.
  • Loading branch information
Keno committed Mar 20, 2014
1 parent 509b419 commit 571cb29
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Make.inc
Original file line number Diff line number Diff line change
Expand Up @@ -211,8 +211,8 @@ $(error Address Sanitizer only supported with clang. Try setting SANITIZE=0)
endif
CC = $(CROSS_COMPILE)gcc
CXX = $(CROSS_COMPILE)g++
JCFLAGS = -std=gnu99 -pipe $(fPIC) -fno-strict-aliasing
JCPPFLAGS = -D_FILE_OFFSET_BITS=64
JCFLAGS = -std=gnu99 -pipe $(fPIC) -fno-strict-aliasing -D_FILE_OFFSET_BITS=64
JCPPFLAGS =
JCXXFLAGS = -pipe $(fPIC) -fno-rtti
DEBUGFLAGS = -O0 -ggdb3 -DDEBUG -fstack-protector-all
SHIPFLAGS = -O3 -falign-functions
Expand All @@ -221,8 +221,8 @@ endif
ifeq ($(USECLANG),1)
CC = $(CROSS_COMPILE)clang
CXX = $(CROSS_COMPILE)clang++
JCFLAGS = -pipe $(fPIC) -fno-strict-aliasing
JCPPFLAGS = -D_FILE_OFFSET_BITS=64
JCFLAGS = -pipe $(fPIC) -fno-strict-aliasing -D_FILE_OFFSET_BITS=64
JCPPFLAGS =
JCXXFLAGS = -pipe $(fPIC) -fno-rtti
DEBUGFLAGS = -O0 -g -DDEBUG -fstack-protector-all
SHIPFLAGS = -O3
Expand Down

0 comments on commit 571cb29

Please sign in to comment.