From: Chris Lattner Date: Fri, 13 Sep 2002 16:02:26 +0000 (+0000) Subject: Build with -D_GNU_SOURCE to enable gnu extensions in header files X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=73e1d0f1958a4ba8770c5d114b7067f5add4c86c Build with -D_GNU_SOURCE to enable gnu extensions in header files git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3702 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/Makefile.common b/Makefile.common index 2415e887a31..029c2c987a5 100644 --- a/Makefile.common +++ b/Makefile.common @@ -118,6 +118,9 @@ else PROFILE = endif +# Allow gnu extensions... +CPPFLAGS += -D_GNU_SOURCE + # -Wno-unused-parameter CompileCommonOpts := $(PROFILE) -Wall -W -Wwrite-strings -Wno-unused -I$(LEVEL)/include diff --git a/Makefile.rules b/Makefile.rules index 2415e887a31..029c2c987a5 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -118,6 +118,9 @@ else PROFILE = endif +# Allow gnu extensions... +CPPFLAGS += -D_GNU_SOURCE + # -Wno-unused-parameter CompileCommonOpts := $(PROFILE) -Wall -W -Wwrite-strings -Wno-unused -I$(LEVEL)/include