Build with -D_GNU_SOURCE to enable gnu extensions in header files
[oota-llvm.git] / Makefile.common
index 2415e887a3151dab47426c6508dde10ddfa34d65..029c2c987a5814e5254d30acbb71311f6b91a0f6 100644 (file)
@@ -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