aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2006-06-08 08:46:39 -0700
committerH. Peter Anvin <hpa@zytor.com>2006-06-08 08:46:39 -0700
commit10e3a9305014b51cd3ad6d6ab4292c6487ab712b (patch)
tree1b6afada18908e92ca2e74b7a586072c2f3ef943
parentce07e7bffadf8e89638c5f369892ae5a945ca8e0 (diff)
downloadklibc-10e3a9305014b51cd3ad6d6ab4292c6487ab712b.tar.gz
[klibc] -x c++ breaks non-c++-capable versions of gcc. Use -x c instead.klibc-1.3.35
-x c++ was a safety for very old versions of gcc, but I had assumed it would always be available since we're just running the preprocessor. That apparently isn't the case, so undo that change and just treat it like C code. If someone has a really old gcc, it *should* still work since syscalls.pl will recognize the comments, but presence of quotes may make it unpredictable. In other words, no worse off than we previously were. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--usr/klibc/syscalls/Kbuild2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/klibc/syscalls/Kbuild b/usr/klibc/syscalls/Kbuild
index f5468a382e5fa..487ebf7b52f9b 100644
--- a/usr/klibc/syscalls/Kbuild
+++ b/usr/klibc/syscalls/Kbuild
@@ -38,7 +38,7 @@ $(obj)/syscalls.list: $(call objectify,$(syscall-objs)) FORCE
# We pass -ansi to keep cpp from define e.g. "i386" as well as "__i386__"
quiet_cmd_syscall.i = GEN $@
cmd_syscall.i = $(KLIBCCC) $(klibccflags) -D__ASSEMBLY__ \
- -ansi -x c++ -E -o $@ $<
+ -ansi -x c -E -o $@ $<
$(obj)/SYSCALLS.i: $(KLIBCSRC)/SYSCALLS.def FORCE
$(call if_changed_dep,syscall.i)