diff --git a/gnome-panel/Makefile.am b/gnome-panel/Makefile.am
index a341333..0b69e83 100644
--- a/gnome-panel/Makefile.am
+++ b/gnome-panel/Makefile.am
@@ -134,7 +134,8 @@ gnome_panel_LDADD =		\
 	$(top_builddir)/gnome-panel/libpanel-util/libpanel-util.la			\
 	$(PANEL_LIBS)									\
 	$(XRANDR_LIBS)									\
-	$(X_LIBS)
+	$(X_LIBS)									\
+	-lm
 
 gnome_panel_LDFLAGS = -export-dynamic
 
