[SeaBIOS] problem building from Windows using msys

Kevin O'Connor kevin at koconnor.net
Tue Jun 3 17:15:12 CEST 2014


On Mon, Jun 02, 2014 at 05:27:23PM -0500, Scott Duplichan wrote:
> Kevin O'Connor [mailto:kevin at koconnor.net] wrote:
> ]Unfortunately, this would break builds where one specifies an OUT
> ]build directory that isn't a sub-directory of the source code.  (That
> ]is, a build with "make OUT=/a/b/c".)
> ]
> ]I've never tried building under Windows, and I'm not really sure how
> ]to help here.  Does passing the CURDIR via the command-line (as in the
> ]patch below) improve things?
> ]
> ]-Kevin
> 
> Well sure enough, this patch solves the problem.

Thanks.  Does the patch below also work?

-Kevin


--- a/Makefile
+++ b/Makefile
@@ -112,8 +112,8 @@ endif
 # Do a whole file compile by textually including all C code.
 define whole-compile
 @echo "  Compiling whole program $3"
-$(Q)printf '$(foreach i,$2,#include "$(CURDIR)/$i"\n)' > $3.tmp.c
-$(Q)$(CC) $1 $(CFLAGSWHOLE) -c $3.tmp.c -o $3
+$(Q)printf '$(foreach i,$2,#include "$i"\n)' > $3.tmp.c
+$(Q)$(CC) -I. $1 $(CFLAGSWHOLE) -c $3.tmp.c -o $3
 endef
 
 %.strip.o: %.o



More information about the SeaBIOS mailing list