1diff --git a/setup.py b/setup.py
2index 98efabdbf..e69e79084 100644
3--- a/setup.py
4+++ b/setup.py
5@@ -563,6 +563,8 @@ print("-----")
6
7 extensions = []
8
9+libraries += [ "X11", "GL" ] # statically link x11 and opengl
10+
11 pybullet_ext = Extension("pybullet",
12 sources = sources,
13 libraries = libraries,