[x264-devel] [PATCH] Fix out-of-tree builds on MinGW

Derek Buitenhuis derek.buitenhuis at gmail.com
Mon Feb 6 21:26:36 CET 2012


When calling windres, you need to include the build directory,
for out-of-tree builds to work.

Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>
---
 Makefile |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index c735a88..5c46337 100644
--- a/Makefile
+++ b/Makefile
@@ -186,10 +186,10 @@ $(OBJS) $(OBJASM) $(OBJSO) $(OBJCLI) $(OBJCHK): .depend
 	-@ $(if $(STRIP), $(STRIP) -x $@) # delete local/anonymous symbols, so they don't show up in oprofile
 
 %.dll.o: %.rc x264.h
-	$(RC) -DDLL -o $@ $<
+	$(RC) -I. -DDLL -o $@ $<
 
 %.o: %.rc x264.h
-	$(RC) -o $@ $<
+	$(RC) -I. -o $@ $<
 
 .depend: config.mak
 	@rm -f .depend
-- 
1.7.9



More information about the x264-devel mailing list