powerpc: Add configurable -Werror for arch/powerpc
[pandora-kernel.git] / arch / powerpc / lib / Makefile
index 29b742b..3040dac 100644 (file)
@@ -2,6 +2,8 @@
 # Makefile for ppc-specific library files..
 #
 
+subdir-ccflags-$(CONFIG_PPC_WERROR) := -Werror
+
 ifeq ($(CONFIG_PPC64),y)
 EXTRA_CFLAGS           += -mno-minimal-toc
 endif