diff options
| author | jkoshy <jkoshy@NetBSD.org> | 2022-05-01 17:25:19 +0000 |
|---|---|---|
| committer | jkoshy <jkoshy@NetBSD.org> | 2022-05-01 17:25:19 +0000 |
| commit | 917fdbc2fcff5d8bef8ac885326f872d7c7582d8 (patch) | |
| tree | 3d0ee7b88fc65e47c64e52deb0857d5b8308b923 /tools | |
| parent | e04c7b340dda074843f01f28e190c2647716c691 (diff) | |
Make the generated <sys/elfdefinitions.h> file visible when compiling
libdwarf.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/elftoolchain/libdwarf/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/elftoolchain/libdwarf/Makefile b/tools/elftoolchain/libdwarf/Makefile index 87a5ac5fec0..0f859cdb500 100644 --- a/tools/elftoolchain/libdwarf/Makefile +++ b/tools/elftoolchain/libdwarf/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1 2022/04/18 14:11:43 jkoshy Exp $ +# $NetBSD: Makefile,v 1.2 2022/05/01 17:25:19 jkoshy Exp $ HOSTLIB=dwarf @@ -71,8 +71,11 @@ COMPATLIB_NO_LIB= yes # only the include files, not the library .-include "${TOOLDIR}/share/compat/defs.mk" .endif +LIBDWARF_OBJDIR!= cd ${.CURDIR} && ${PRINTOBJDIR} + CPPFLAGS+= -I${.CURDIR}/../../compat CPPFLAGS+= -I${.CURDIR}/../../common +CPPFLAGS+= -I${LIBDWARF_OBJDIR}/../common CPPFLAGS+= -I${LIBDWARF_DIR} -I${LIBELF_DIR} -I${COMMON_DIR} CPPFLAGS+= -I${TOOLDIR}/include -I${TOOLDIR}/include/nbinclude |
