diff --git a/libavcodec/Makefile b/libavcodec/Makefile
index d6ed5e2c0250ecfe525031d3c1474dc6c1aa6cdd..f43980615a8b1c851ebc0f4376e92066dbd09d8e 100644
--- a/libavcodec/Makefile
+++ b/libavcodec/Makefile
@@ -673,6 +673,7 @@ OBJS-$(CONFIG_MPEGTS_MUXER)            += mpeg4audio.o
 OBJS-$(CONFIG_MPEGTS_DEMUXER)          += mpeg4audio.o mpegaudiodata.o
 OBJS-$(CONFIG_MXF_MUXER)               += dnxhddata.o
 OBJS-$(CONFIG_NUT_MUXER)               += mpegaudiodata.o
+OBJS-$(CONFIG_OGA_MUXER)               += xiph.o flac.o flacdata.o
 OBJS-$(CONFIG_OGG_DEMUXER)             += xiph.o flac.o flacdata.o     \
                                           mpeg12data.o vorbis_parser.o \
                                           dirac.o vorbis_data.o
diff --git a/libavformat/Makefile b/libavformat/Makefile
index 2b78e73e623f51b27eff395dd21cb538aa232121..457a69f9142b69b50a5a6aa84d24daf310ecc8be 100644
--- a/libavformat/Makefile
+++ b/libavformat/Makefile
@@ -272,6 +272,8 @@ OBJS-$(CONFIG_OGG_DEMUXER)               += oggdec.o         \
                                             replaygain.o     \
                                             vorbiscomment.o  \
                                             flac_picture.o
+OBJS-$(CONFIG_OGA_MUXER)                 += oggenc.o \
+                                            vorbiscomment.o
 OBJS-$(CONFIG_OGG_MUXER)                 += oggenc.o \
                                             vorbiscomment.o
 OBJS-$(CONFIG_OMA_DEMUXER)               += omadec.o pcm.o oma.o