summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/cmd/sgs/elfcap.chk/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr/src/cmd/sgs/elfcap.chk/Makefile b/usr/src/cmd/sgs/elfcap.chk/Makefile
index 9e446ff0e3..304347784c 100644
--- a/usr/src/cmd/sgs/elfcap.chk/Makefile
+++ b/usr/src/cmd/sgs/elfcap.chk/Makefile
@@ -22,7 +22,14 @@ include ../Makefile.com
CSTD = $(GNU_C99)
NATIVE_LIBS += libc.so
-CPPFLAGS = $(CPPFLAGS.native)
+#
+# We reach into the tools include area which provides us with a snapshot
+# of all of the data that we need. This does mean that if someone is in
+# bldenv and does incremental builds that change the related ELF header
+# files they will need to rebuild that, but the same is true if we move
+# this into tools (and it becomes more annoying).
+#
+CPPFLAGS = -I$(SRC)/tools/sgs/include $(CPPFLAGS.native)
CFLAGS = $(NATIVE_CFLAGS)
CC = $(NATIVECC)
LDCHECKS =