Date: Sun, 5 Jun 2016 23:34:19 +0000 (UTC) From: Bryan Drewery <bdrewery@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r301476 - head/usr.bin/elfcopy Message-ID: <201606052334.u55NYJIe035893@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bdrewery Date: Sun Jun 5 23:34:19 2016 New Revision: 301476 URL: https://svnweb.freebsd.org/changeset/base/301476 Log: Use the in-tree sys/elf_common.h This is the same fix as r301471. Modified: head/usr.bin/elfcopy/Makefile Modified: head/usr.bin/elfcopy/Makefile ============================================================================== --- head/usr.bin/elfcopy/Makefile Sun Jun 5 23:16:27 2016 (r301475) +++ head/usr.bin/elfcopy/Makefile Sun Jun 5 23:34:19 2016 (r301476) @@ -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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606052334.u55NYJIe035893>