OSDN Git Service

Link tests/examples with -lfoo instead of libfoo.a
authorMåns Rullgård <mans@mansr.com>
Wed, 1 Apr 2009 00:53:28 +0000 (00:53 +0000)
committerMåns Rullgård <mans@mansr.com>
Wed, 1 Apr 2009 00:53:28 +0000 (00:53 +0000)
Originally committed as revision 18296 to svn://svn.ffmpeg.org/ffmpeg/trunk

subdir.mak

index 6b098cd..03c852a 100644 (file)
@@ -20,7 +20,7 @@ INCINSTDIR := $(INCDIR)/lib$(NAME)
 
 define RULES
 $(SUBDIR)%$(EXESUF): $(SUBDIR)%.o
-       $(CC) $(FFLDFLAGS) -o $$@ $$^ $(SUBDIR)$(LIBNAME) $(FFEXTRALIBS)
+       $(CC) $(FFLDFLAGS) -o $$@ $$^ -l$(FULLNAME) $(FFEXTRALIBS)
 
 $(SUBDIR)%-test.o: $(SUBDIR)%.c
        $(CC) $(CFLAGS) -DTEST -c -o $$@ $$^