build: link test programs with static libraries
authorMans Rullgard <mans@mansr.com>
Sat, 17 Dec 2011 15:05:24 +0000 (15:05 +0000)
committerMans Rullgard <mans@mansr.com>
Sat, 17 Dec 2011 23:21:08 +0000 (23:21 +0000)
Many of the test programs directly access internal symbols not
exported from the shared libraries.  This allows tests to run
when configured with shared libraries.

Signed-off-by: Mans Rullgard <mans@mansr.com>
library.mak

index e269b50..f50e8e5 100644 (file)
@@ -92,6 +92,7 @@ endef
 $(eval $(RULES))
 
 $(EXAMPLES) $(TESTPROGS) $(TOOLS): $(THIS_LIB) $(DEP_LIBS)
 $(eval $(RULES))
 
 $(EXAMPLES) $(TESTPROGS) $(TOOLS): $(THIS_LIB) $(DEP_LIBS)
+$(TESTPROGS): $(SUBDIR)$(LIBNAME)
 
 examples: $(EXAMPLES)
 testprogs: $(TESTPROGS)
 
 examples: $(EXAMPLES)
 testprogs: $(TESTPROGS)