* Applied stippi's no-patents patch, but without the ffmpeg part, as that one

is obviously already configured not to use patented code.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32577 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2009-08-21 17:20:23 +00:00
parent c53744492d
commit 67838392dc
3 changed files with 27 additions and 2 deletions
+12
View File
@@ -322,6 +322,18 @@ if $(DEBUG_PRINTF) {
HAIKU_C++FLAGS += [ FDefines DEBUG_PRINTF=$(DEBUG_PRINTF) ] ;
}
# If the environment variable HAIKU_INCLUDE_PATENTED_CODE is defined, we
# define an equally named macro to the variable value. Some components use the
# macro to allow compilation of code known to implemented patented ideas and/or
# techniques, for example the Freetype bytecode hinter or sub-pixel rendering
# as well as some problematic media codecs.
if $(HAIKU_INCLUDE_PATENTED_CODE) {
HAIKU_CCFLAGS += [ FDefines
HAIKU_INCLUDE_PATENTED_CODE=$(HAIKU_INCLUDE_PATENTED_CODE) ] ;
HAIKU_C++FLAGS += [ FDefines
HAIKU_INCLUDE_PATENTED_CODE=$(HAIKU_INCLUDE_PATENTED_CODE) ] ;
}
# warning flags
HAIKU_WARNING_CCFLAGS = -Wall -Wno-trigraphs -Wmissing-prototypes
-Wpointer-arith -Wcast-align -Wsign-compare -Wno-multichar ;