diff --git a/X11.buildinfo.in b/X11.buildinfo.in
--- a/X11.buildinfo.in
+++ b/X11.buildinfo.in
@@ -5,3 +5,4 @@
 cc-options: @X_CFLAGS@ @CPPFLAGS@
 ld-options: @X_LIBS@ @LDFLAGS@
 extra-libraries: @EXTRA_LIBRARIES@
+extra-lib-dirs: @X_LIBRARIES@
diff --git a/X11.cabal b/X11.cabal
--- a/X11.cabal
+++ b/X11.cabal
@@ -1,5 +1,5 @@
 name:               X11
-version:            1.9.1
+version:            1.9.2
 synopsis:           A binding to the X11 graphics library
 description:        A Haskell binding to the X11 graphics library. The binding is a direct
                     translation of the C binding; for documentation of these calls, refer
@@ -11,7 +11,7 @@
                     Don Stewart 2007-2009, Spencer Janssen 2007-2009, Daniel Wagner 2009-2011.
 maintainer:         Daniel Wagner <daniel@wagner-home.com>
 tested-with:        GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.2, GHC == 8.2.2,
-                    GHC == 8.4.3, GHC == 8.6.5, GHC == 8.8.1
+                    GHC == 8.4.3, GHC == 8.6.5, GHC == 8.8.4, GHC == 8.10.2
 category:           Graphics
 homepage:           https://github.com/xmonad/X11
 bug-reports:        https://github.com/xmonad/X11/issues
@@ -32,50 +32,51 @@
                     include/XlibExtras.h
                     include/X11_extras_config.h.in
                     include/HsAllKeysyms.h
-cabal-version:      >= 1.6
+cabal-version:      >= 1.10
 
 source-repository head
   type:     git
   location: https://github.com/xmonad/X11
 
 library
-  exposed-modules:  Graphics.X11
-                    Graphics.X11.ExtraTypes
-                    Graphics.X11.ExtraTypes.AP
-                    Graphics.X11.ExtraTypes.DEC
-                    Graphics.X11.ExtraTypes.HP
-                    Graphics.X11.ExtraTypes.Sun
-                    Graphics.X11.ExtraTypes.XF86
-                    Graphics.X11.ExtraTypes.XorgDefault
-                    Graphics.X11.Types
-                    Graphics.X11.XScreenSaver
-                    Graphics.X11.Xinerama
-                    Graphics.X11.Xlib
-                    Graphics.X11.Xlib.Atom
-                    Graphics.X11.Xlib.Color
-                    Graphics.X11.Xlib.Context
-                    Graphics.X11.Xlib.Cursor
-                    Graphics.X11.Xlib.Display
-                    Graphics.X11.Xlib.Event
-                    Graphics.X11.Xlib.Extras
-                    Graphics.X11.Xlib.Font
-                    Graphics.X11.Xlib.Image
-                    Graphics.X11.Xlib.Misc
-                    Graphics.X11.Xlib.Region
-                    Graphics.X11.Xlib.Screen
-                    Graphics.X11.Xlib.Types
-                    Graphics.X11.Xlib.Window
-                    Graphics.X11.Xrandr
-  other-modules:    Graphics.X11.Xlib.Internal
-  build-depends:    base == 4.*, data-default
-  extensions:       CPP
-                    ForeignFunctionInterface
-  extra-libraries:  X11, Xrandr, Xext
-  c-sources:        cbits/fdset.c, cbits/auxiliaries.c, cbits/XUtils.c
-  includes:         HsXlib.h, HsAllKeysyms.h
-  install-includes: HsXlib.h, XlibExtras.h, HsAllKeysyms.h
-  include-dirs:     include
-  ghc-options:      -funbox-strict-fields -Wall -fno-warn-unused-binds
+  exposed-modules:    Graphics.X11
+                      Graphics.X11.ExtraTypes
+                      Graphics.X11.ExtraTypes.AP
+                      Graphics.X11.ExtraTypes.DEC
+                      Graphics.X11.ExtraTypes.HP
+                      Graphics.X11.ExtraTypes.Sun
+                      Graphics.X11.ExtraTypes.XF86
+                      Graphics.X11.ExtraTypes.XorgDefault
+                      Graphics.X11.Types
+                      Graphics.X11.XScreenSaver
+                      Graphics.X11.Xinerama
+                      Graphics.X11.Xlib
+                      Graphics.X11.Xlib.Atom
+                      Graphics.X11.Xlib.Color
+                      Graphics.X11.Xlib.Context
+                      Graphics.X11.Xlib.Cursor
+                      Graphics.X11.Xlib.Display
+                      Graphics.X11.Xlib.Event
+                      Graphics.X11.Xlib.Extras
+                      Graphics.X11.Xlib.Font
+                      Graphics.X11.Xlib.Image
+                      Graphics.X11.Xlib.Misc
+                      Graphics.X11.Xlib.Region
+                      Graphics.X11.Xlib.Screen
+                      Graphics.X11.Xlib.Types
+                      Graphics.X11.Xlib.Window
+                      Graphics.X11.Xrandr
+  other-modules:      Graphics.X11.Xlib.Internal
+  build-depends:      base == 4.*, data-default
+  default-language:   Haskell98
+  default-extensions: CPP
+                      ForeignFunctionInterface
+  extra-libraries:    X11, Xrandr, Xext
+  c-sources:          cbits/fdset.c, cbits/auxiliaries.c, cbits/XUtils.c
+  includes:           HsXlib.h, HsAllKeysyms.h
+  install-includes:   HsXlib.h, XlibExtras.h, HsAllKeysyms.h
+  include-dirs:       include
+  ghc-options:        -funbox-strict-fields -Wall -fno-warn-unused-binds
 
   if impl(ghc >= 7.10)
     ghc-options: -fno-warn-tabs
diff --git a/configure b/configure
--- a/configure
+++ b/configure
@@ -624,6 +624,7 @@
 
 ac_subst_vars='LTLIBOBJS
 LIBOBJS
+X_LIBRARIES
 EXTRA_LIBRARIES
 EGREP
 GREP
@@ -4275,6 +4276,9 @@
 
 
 
+
+
+X_LIBRARIES="$x_libraries"
 
 
 ac_config_files="$ac_config_files config.mk X11.buildinfo"
diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -135,5 +135,8 @@
 
 AC_SUBST([EXTRA_LIBRARIES])
 
+X_LIBRARIES="$x_libraries"
+AC_SUBST([X_LIBRARIES])
+
 AC_CONFIG_FILES([config.mk X11.buildinfo])
 AC_OUTPUT
