diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2016-06-05 23:34:19 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2016-06-05 23:34:19 +0000 |
commit | 1db883aabf664e9d756d68eaf879d3f641614c3c (patch) | |
tree | 5f009e08d8197a2e8d5a1c3d8f06be48f0d96846 /usr.bin | |
parent | 13d132737e6b49992672bf9c3b27d18b9ac7184e (diff) | |
download | FreeBSD-src-1db883aabf664e9d756d68eaf879d3f641614c3c.zip FreeBSD-src-1db883aabf664e9d756d68eaf879d3f641614c3c.tar.gz |
Use the in-tree sys/elf_common.h
This is the same fix as r301471.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/elfcopy/Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/usr.bin/elfcopy/Makefile b/usr.bin/elfcopy/Makefile index cc99fa3..3ffc0d5 100644 --- a/usr.bin/elfcopy/Makefile +++ b/usr.bin/elfcopy/Makefile @@ -30,4 +30,17 @@ MAN= ${PROG}.1 strip.1 LINKS= ${BINDIR}/${PROG} ${BINDIR}/strip +# This same hack is in lib/libelf/Makefile and usr.bin/readelf/Makefile +# We need to link against the correct version of these files. One +# solution is to include ../../sys in the include path. This causes +# problems when a header file in sys depends on a file in another +# part of the tree, e.g. a machine dependent header. +# +SRCS+= sys/elf_common.h +CLEANDIRS= sys +CFLAGS+= -I. +sys/elf_common.h: ${SRCTOP}/sys/${.TARGET} .NOMETA + mkdir -p ${.OBJDIR}/sys + ln -sf ${.ALLSRC} ${.TARGET} + .include <bsd.prog.mk> |