diff -urN libvorbis-1.2.3/configure.ac libvorbis-1.2.3-haiku/configure.ac
--- libvorbis-1.2.3/configure.ac	2009-07-09 10:02:25.000000000 +0000
+++ libvorbis-1.2.3-haiku/configure.ac	2009-09-13 21:56:38.000000000 +0000
@@ -185,6 +185,10 @@
 		DEBUG="-g -Wall -W -D_REENTRANT -D__NO_MATH_INLINES -fsigned-char"
 		CFLAGS="-O20 -Wall -W -ffast-math -D_REENTRANT -fsigned-char"
 		PROFILE="-pg -g -O20 -ffast-math -D_REENTRANT -fsigned-char";;
+ 	*-*-haiku*)
+		DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char"
+		CFLAGS="-O20 -Wall -D__NO_MATH_INLINES -fsigned-char"
+		PROFILE="-O20 -g -pg -D__NO_MATH_INLINES -fsigned-char" ;;
  	*)
 		DEBUG="-g -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char"
 		CFLAGS="-O20 -Wall -Wextra -D__NO_MATH_INLINES -fsigned-char"

Patch to remove -Werror when building libvorbis on haiku
Patch to remove -Werror when building libvorbis on haiku

