summaryrefslogtreecommitdiffstats
path: root/lib/libelf
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2012-07-24 16:03:28 +0000
committerache <ache@FreeBSD.org>2012-07-24 16:03:28 +0000
commitb7a0f04c526af6628c15d9d29f4ea078ad0f4caf (patch)
tree8db6b581f7b89cdca3be1a3f08c3f78364b1f0d3 /lib/libelf
parentef01c339030f2b6fd5185246069a9912fac5980c (diff)
downloadFreeBSD-src-b7a0f04c526af6628c15d9d29f4ea078ad0f4caf.zip
FreeBSD-src-b7a0f04c526af6628c15d9d29f4ea078ad0f4caf.tar.gz
Don't ever build files depending on the directory where they are placed in.
It is obvious that its modification time will change with each such file builded. This bug cause whole libelf to rebuild itself each second make run (and relink that files on each first make run) in the loop.
Diffstat (limited to 'lib/libelf')
-rw-r--r--lib/libelf/Makefile6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libelf/Makefile b/lib/libelf/Makefile
index ee96812..f4baf14 100644
--- a/lib/libelf/Makefile
+++ b/lib/libelf/Makefile
@@ -68,11 +68,9 @@ CLEANFILES= ${GENSRCS}
CLEANDIRS= sys
CFLAGS+= -I${.CURDIR} -I.
-sys/elf32.h sys/elf64.h sys/elf_common.h: sys
- ln -sf ${.CURDIR}/../../sys/${.TARGET} ${.TARGET}
-
-sys:
+sys/elf32.h sys/elf64.h sys/elf_common.h: ${.CURDIR}/../../sys/${.TARGET}
mkdir -p ${.OBJDIR}/sys
+ ln -sf ${.CURDIR}/../../sys/${.TARGET} ${.TARGET}
SHLIB_MAJOR= 1
OpenPOWER on IntegriCloud