From 73e1d0f1958a4ba8770c5d114b7067f5add4c86c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 13 Sep 2002 16:02:26 +0000 Subject: [PATCH] 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 --- Makefile.common | 3 +++ Makefile.rules | 3 +++ 2 files changed, 6 insertions(+) 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 -- 2.34.1