Build regression test data generators using HOSTCC
authorMåns Rullgård <mans@mansr.com>
Sun, 23 Nov 2008 12:36:41 +0000 (12:36 +0000)
committerMåns Rullgård <mans@mansr.com>
Sun, 23 Nov 2008 12:36:41 +0000 (12:36 +0000)
Originally committed as revision 15914 to svn://svn.ffmpeg.org/ffmpeg/trunk

Makefile

index ad3daf0..bd34a4c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -326,8 +326,8 @@ tests/vsynth2/00.pgm: tests/rotozoom$(EXESUF)
 tests/asynth1.sw: tests/audiogen$(EXESUF)
        $(BUILD_ROOT)/$< $@
 
-%$(EXESUF): %.c
-       $(CC) $(FF_LDFLAGS) $(CFLAGS) -o $@ $<
+tests/%$(EXESUF): tests/%.c
+       $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $< $(HOSTLIBS)
 
 tests/seek_test$(EXESUF): tests/seek_test.c $(FF_DEP_LIBS)
        $(CC) $(FF_LDFLAGS) $(CFLAGS) -o $@ $< $(FF_EXTRALIBS)