diff -up ./src/Makefile.am.0000 ./src/Makefile.am
--- ./src/Makefile.am.0000	2014-02-05 13:27:05.000000000 +0200
+++ ./src/Makefile.am	2014-02-08 19:32:30.935831563 +0200
@@ -121,6 +121,7 @@ libtotem_la_LDFLAGS = \
 libtotem_la_LIBADD = \
 	libtotem_player.la		\
 	backend/libbaconvideowidget.la	\
+	$(top_builddir)/libgd/libgd.la	\
 	$(PLAYER_LIBS)
 
 # Totem
@@ -137,8 +138,7 @@ totem_CFLAGS =			\
 
 totem_LDADD =		\
 	libtotem.la	\
-	$(PLAYER_LIBS)  \
-	$(top_builddir)/libgd/libgd.la
+	$(PLAYER_LIBS)
 
 # Totem video thumbnailer
 totem_video_thumbnailer_SOURCES = \
