diff --git a/openni/distinfo b/openni/distinfo
index 679ad48f9a024b30e316d4942580c3dff6d30e0e..0e058bb57d7563d8ff3574c3cf37e05abec34f07 100644
--- a/openni/distinfo
+++ b/openni/distinfo
@@ -1,3 +1,6 @@
 SHA1 (openni-20101213.43c256.tar.gz) = 10ef96dd62e8dfedf8ee19a09b6f8d2736ed5ea4
 RMD160 (openni-20101213.43c256.tar.gz) = 91eabe553e64ec947d28b7ceb20fd73ce20f6307
 SHA1 (patch-aa) = 35f4b6631761c8b269908990244b8ffdf65a3dc2
+SHA1 (patch-ab) = 5a47d785edb225feeb56ed67784726996b4403d6
+SHA1 (patch-ac) = ab1640f55b486ec5fc2ded2e4a8aeee2c65e9190
+SHA1 (patch-ad) = 6d80927d5c65f55a0145f5aa6ac1dd07d24d7cf9
diff --git a/openni/patches/patch-ab b/openni/patches/patch-ab
new file mode 100644
index 0000000000000000000000000000000000000000..4a24519fd8df3ab30309971f0723511c71c6f928
--- /dev/null
+++ b/openni/patches/patch-ab
@@ -0,0 +1,11 @@
+--- Platform/Linux-x86/Build/Samples/NiSimpleViewer/Makefile~	2010-12-14 11:42:46.230896000 +0100
++++ Platform/Linux-x86/Build/Samples/NiSimpleViewer/Makefile	2010-12-14 11:43:00.993615000 +0100
+@@ -9,7 +9,7 @@
+ SRC_FILES = ../../../../../Samples/NiSimpleViewer/*.cpp
+ 
+ EXE_NAME = Sample-NiSimpleViewer
+-USED_LIBS = OpenNI glut
++USED_LIBS = OpenNI glut GL
+ 
+ include ../../CommonMakefile
+ 
diff --git a/openni/patches/patch-ac b/openni/patches/patch-ac
new file mode 100644
index 0000000000000000000000000000000000000000..80544957885144f7106924c3be7a80bec6514a1b
--- /dev/null
+++ b/openni/patches/patch-ac
@@ -0,0 +1,11 @@
+--- Platform/Linux-x86/Build/Samples/NiUserTracker/Makefile~	2010-12-14 11:43:21.568437000 +0100
++++ Platform/Linux-x86/Build/Samples/NiUserTracker/Makefile	2010-12-14 11:43:21.574441000 +0100
+@@ -9,7 +9,7 @@
+ SRC_FILES = ../../../../../Samples/NiUserTracker/*.cpp
+ 
+ EXE_NAME = Sample-NiUserTracker
+-USED_LIBS = OpenNI glut
++USED_LIBS = OpenNI glut GL
+ 
+ include ../../CommonMakefile
+ 
diff --git a/openni/patches/patch-ad b/openni/patches/patch-ad
new file mode 100644
index 0000000000000000000000000000000000000000..168d94015efa0bc8ba8f0e855c1651459c69e5cd
--- /dev/null
+++ b/openni/patches/patch-ad
@@ -0,0 +1,11 @@
+--- Platform/Linux-x86/Build/Samples/NiViewer/Makefile~	2010-12-14 11:43:09.795058000 +0100
++++ Platform/Linux-x86/Build/Samples/NiViewer/Makefile	2010-12-14 11:43:09.804056000 +0100
+@@ -11,7 +11,7 @@
+ SRC_FILES = ../../../../../Samples/NiViewer/*.cpp
+ 
+ EXE_NAME = NiViewer
+-USED_LIBS = OpenNI glut
++USED_LIBS = OpenNI glut GL
+ 
+ include ../../CommonMakefile
+