--- a/gdk/Makefile.am
+++ b/gdk/Makefile.am
@@ -50,7 +50,8 @@
 	-version-info $(LT_VERSION_INFO)	\
 	-export-dynamic 			\
 	-rpath $(libdir) 			\
-	$(no_undefined)
+	$(no_undefined)				\
+	$(SHM_LIBS)
 
 #
 # setup source file variables
