summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2022-12-18 17:38:23 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-12-18 23:43:12 +0100
commit73fbf2504ae606dda81372701a67dad6fee0865e (patch)
tree60af2b9d1e8973468237fbeeb426c5c181588345
parent7063f0aefd8a8c3c8b610ef6168cddfb2141fa12 (diff)
Generate cpu.h with -ffreestanding
During a system bootstrap, it is preferable that we don't require a full hosted environment. For all other cases, we also do not need libc since mach headers are self contained. Message-Id: <Y5+WXzOwGkyvcDI0@mars>
-rw-r--r--Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 918efa1..35c91bc 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -27,7 +27,7 @@ SUFFIXES = .h .symo .symc .sym
.sym.symc:
$(AWK_V) $(AWK) -f $(srcdir)/gensym.awk $< > $@
.symc.symo:
- $(AM_V_CC) $(TARGET_CC) -S $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) -x c -o $@ $<
+ $(AM_V_CC) $(TARGET_CC) -S $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) -ffreestanding -x c -o $@ $<
.symo.h:
$(AM_V_GEN) sed -e '/^[^*].*$$/d' -e 's/^[*]/#define/' -e 's/mAgIc[^-0-9]*//' \
$< > $@