SeaBIOS

SeaBIOS Commit Details

Date:2014-06-03 21:22:31 (3 years 4 months ago)
Author:Kevin O'Connor
Branch:1.10-stable, 1.8-stable, 1.9-stable, master
Commit:ec44fac1f69bd3d513204a6192623de511b11144
Parents: ca34ce5aaa358f096c5ef968833b32dab90ddcdf
Message:build: Avoid absolute paths during "whole-program" compiling.

The build currently does a textual include of all files in order to
use the -fwhole-compile optimization. Update it to use relative file
paths instead of absolute file paths. This makes the section names in
the resulting binary more readable. It also makes the build easier on
some Windows hosts.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Changes:

File differences

Makefile
111111
112112
113113
114
115
114
115
116116
117117
118118
# 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

Archive Download the corresponding diff file