aboutsummaryrefslogtreecommitdiff
path: root/Makefile.in
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2024-03-03 17:40:20 -0800
committerAndrew Waterman <andrew@sifive.com>2024-03-03 18:03:51 -0800
commitc820d2b9b485dc0204fc21ec7ea704e8e8c4c4ec (patch)
treec2d7ff8ee34b8cb87c70b4b85d501c2d943aa5db /Makefile.in
parent567e687b215e1198fe6e45122f245f1c9f4da556 (diff)
downloadriscv-isa-sim-c820d2b9b485dc0204fc21ec7ea704e8e8c4c4ec.zip
riscv-isa-sim-c820d2b9b485dc0204fc21ec7ea704e8e8c4c4ec.tar.gz
riscv-isa-sim-c820d2b9b485dc0204fc21ec7ea704e8e8c4c4ec.tar.bz2
Don't include subproject headers with -I
Use -iquote instead. This prevents our include paths from messing up the system headers depended upon by libstdc++. (The specific problem was syscall.h in fesvr/, which was interfering with libstdc++'s dependence on the system's syscall.h for SYS_futex.) Subproject headers can now be included in the following ways: #include "foo.h" // for a header local to this subproject #include <bar/baz.h>" // for a header in another subproject But no longer: #include <baz.h> // for a header in any subproject As a special case, libfdt needs itself to be added to the -I path, because their coding style is to use angle brackets for local headers.
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index dc70893..f90159e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -69,7 +69,7 @@ install_exes_dir := $(INSTALLDIR)/bin
sprojs := @subprojects@
sprojs_enabled := @subprojects_enabled@
-sprojs_include := -I. -I$(src_dir) $(addprefix -I$(src_dir)/, $(sprojs_enabled))
+sprojs_include := -iquote . -I$(src_dir) $(addprefix -iquote $(src_dir)/, $(sprojs_enabled))
VPATH := $(addprefix $(src_dir)/, $(sprojs_enabled))
#-------------------------------------------------------------------------