Browse Source

Link tests/examples with -lfoo instead of libfoo.a

Originally committed as revision 18296 to svn://svn.ffmpeg.org/ffmpeg/trunk
Måns Rullgård 16 years ago
parent
commit
92c093c1b5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      subdir.mak

+ 1 - 1
subdir.mak

@@ -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 $$@ $$^