diff --git a/Makefile b/Makefile index 7c2cd937f2..19cf90669d 100644 --- a/Makefile +++ b/Makefile @@ -44,13 +44,13 @@ endif endif ifeq ($(CONFIG_LIBOGG),yes) -EXTRALIBS+= -logg ifeq ($(CONFIG_LIBVORBIS),yes) -EXTRALIBS+= -lvorbis -lvorbisenc +EXTRALIBS+= -lvorbisenc -lvorbis endif ifeq ($(CONFIG_LIBTHEORA),yes) EXTRALIBS+= -ltheora endif +EXTRALIBS+= -logg endif ifeq ($(CONFIG_FAAD),yes) diff --git a/libavcodec/Makefile b/libavcodec/Makefile index c15e2761c4..8a966706c2 100644 --- a/libavcodec/Makefile +++ b/libavcodec/Makefile @@ -125,15 +125,15 @@ EXTRALIBS += -lmp3lame endif ifeq ($(CONFIG_LIBOGG),yes) -EXTRALIBS += -logg ifeq ($(CONFIG_LIBVORBIS),yes) OBJS += oggvorbis.o -EXTRALIBS += -lvorbis -lvorbisenc +EXTRALIBS += -lvorbisenc -lvorbis endif ifeq ($(CONFIG_LIBTHEORA), yes) OBJS += oggtheora.o EXTRALIBS += -ltheora endif +EXTRALIBS += -logg endif ifeq ($(TARGET_GPROF),yes)