Build with -D_GNU_SOURCE to enable gnu extensions in header files
authorChris Lattner <sabre@nondot.org>
Fri, 13 Sep 2002 16:02:26 +0000 (16:02 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 13 Sep 2002 16:02:26 +0000 (16:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3702 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.common
Makefile.rules

index 2415e887a3151dab47426c6508dde10ddfa34d65..029c2c987a5814e5254d30acbb71311f6b91a0f6 100644 (file)
@@ -118,6 +118,9 @@ else
 PROFILE =
 endif
 
 PROFILE =
 endif
 
+# Allow gnu extensions...
+CPPFLAGS += -D_GNU_SOURCE
+
 # -Wno-unused-parameter
 CompileCommonOpts := $(PROFILE) -Wall -W  -Wwrite-strings -Wno-unused -I$(LEVEL)/include
 
 # -Wno-unused-parameter
 CompileCommonOpts := $(PROFILE) -Wall -W  -Wwrite-strings -Wno-unused -I$(LEVEL)/include
 
index 2415e887a3151dab47426c6508dde10ddfa34d65..029c2c987a5814e5254d30acbb71311f6b91a0f6 100644 (file)
@@ -118,6 +118,9 @@ else
 PROFILE =
 endif
 
 PROFILE =
 endif
 
+# Allow gnu extensions...
+CPPFLAGS += -D_GNU_SOURCE
+
 # -Wno-unused-parameter
 CompileCommonOpts := $(PROFILE) -Wall -W  -Wwrite-strings -Wno-unused -I$(LEVEL)/include
 
 # -Wno-unused-parameter
 CompileCommonOpts := $(PROFILE) -Wall -W  -Wwrite-strings -Wno-unused -I$(LEVEL)/include