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