diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2016-07-03 17:28:39 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2016-07-03 17:28:39 +0000 |
commit | 269d6e15072ba2cb52db59b3f2ff0bad84ed7125 (patch) | |
tree | f87385c34026c6983bf33d20f5ff61e63aaa8e2f /libexec | |
parent | 3a5de1349738b529b1a852fec388c0d6722ce11e (diff) | |
download | FreeBSD-src-269d6e15072ba2cb52db59b3f2ff0bad84ed7125.zip FreeBSD-src-269d6e15072ba2cb52db59b3f2ff0bad84ed7125.tar.gz |
Fix race for incrementally rebuilding VERSION_MAP.
The dependency is needed in PROG_FULL since only the build of PROG_FULL
is using the LDFLAGS and depending on VERSION_MAP. This was not a problem
with MK_DEBUG_FILES==no since it only builds PROG.
This should probably be using bsd.lib.mk instead [1]
Reported by: swills, gjb
Reviewed by: emaste
Noted by: rgrimes [1]
Sponsored by: EMC / Isilon Storage Division
Approved by: re (kib)
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/rtld-elf/Makefile | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libexec/rtld-elf/Makefile b/libexec/rtld-elf/Makefile index 6ae9130..de98da2 100644 --- a/libexec/rtld-elf/Makefile +++ b/libexec/rtld-elf/Makefile @@ -69,8 +69,6 @@ SYMBOL_MAPS= ${.CURDIR}/Symbol.map VERSION_MAP= Version.map LDFLAGS+= -Wl,--version-script=${VERSION_MAP} -${PROG}: ${VERSION_MAP} - .if exists(${.CURDIR}/${RTLD_ARCH}/Symbol.map) SYMBOL_MAPS+= ${.CURDIR}/${RTLD_ARCH}/Symbol.map .endif @@ -92,4 +90,5 @@ SUBDIR+= tests .endif .include <bsd.prog.mk> +${PROG_FULL}: ${VERSION_MAP} .include <bsd.symver.mk> |