--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,7 @@
 #SOUNDLIBRARIES=
 SOUNDLIBRARIES=-lSDL_mixer
 
-LIBRARIES=`sdl-config --libs` -lSDL_image $(SOUNDLIBRARIES)
+LIBRARIES=`sdl-config --libs` -lSDL_image $(SOUNDLIBRARIES) -lm
 
 all:	$(EXENAME)
 
