--- a/ogginfo/Makefile.am
+++ b/ogginfo/Makefile.am
@@ -13,10 +13,10 @@
 mandir = @MANDIR@
 man_MANS = $(mans)
 
-INCLUDES = @SHARE_CFLAGS@ @OGG_CFLAGS@ @VORBIS_CFLAGS@ @I18N_CFLAGS@
+INCLUDES = @SHARE_CFLAGS@ @OGG_CFLAGS@ @VORBIS_CFLAGS@ @I18N_CFLAGS@ 
 
-ogginfo_LDADD = @SHARE_LIBS@ @VORBIS_LIBS@ @OGG_LIBS@ @LIBICONV@ @I18N_LIBS@
-ogginfo_DEPENDENCIES = @SHARE_LIBS@
+ogginfo_LDADD = @SHARE_LIBS@ @VORBIS_LIBS@ @OGG_LIBS@ @LIBICONV@ @I18N_LIBS@ -ltheora
+ogginfo_DEPENDENCIES = @SHARE_LIBS@ -ltheora
 
 ogginfo_SOURCES = $(ogginfosources)
 EXTRA_ogginfo_SOURCES = $(man_MANS)