]> git.sesse.net Git - ffmpeg/commitdiff
* by Thomas Sailer:
authorZdenek Kabelac <kabi@informatics.muni.cz>
Wed, 1 May 2002 13:27:40 +0000 (13:27 +0000)
committerZdenek Kabelac <kabi@informatics.muni.cz>
Wed, 1 May 2002 13:27:40 +0000 (13:27 +0000)
  otherwise ffmpeg doesn't compile if shared libs are requested and mp3lame
  is selected...

Originally committed as revision 428 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/Makefile

index 9506300a083c2dfb06ba1f578e976b49f2edc2d1..82cc9ede2bff80f144add1e1310aded6b01205dd 100644 (file)
@@ -23,6 +23,7 @@ endif
 
 ifeq ($(CONFIG_MP3LAME),yes)
 OBJS += mp3lameaudio.o
+EXTRALIBS += -lmp3lame
 endif
 
 ifeq ($(TARGET_GPROF),yes)
@@ -74,7 +75,7 @@ $(LIB): $(OBJS) $(ASM_OBJS)
 
 $(SLIB): $(OBJS) $(ASM_OBJS)
        rm -f $@
-       $(CC) -shared -o $@ $(OBJS) $(ASM_OBJS)
+       $(CC) -shared -o $@ $(OBJS) $(ASM_OBJS) $(EXTRALIBS)
        ln -sf $@ libffmpeg.so
 dsputil.o: dsputil.c dsputil.h