aboutsummaryrefslogtreecommitdiff
path: root/share/mk/bsd.prog.mk
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2014-09-02 19:05:34 +0000
committerEd Maste <emaste@FreeBSD.org>2014-09-02 19:05:34 +0000
commit6e52173261f9b844f1f44d0b79be9193d1b1bf33 (patch)
tree789faf10688acedde1773b320e6ebc08829c7a5d /share/mk/bsd.prog.mk
parenta272a81370913e97cbe8c223d9bb0bcbe592fafb (diff)
downloadsrc-6e52173261f9b844f1f44d0b79be9193d1b1bf33.tar.gz
src-6e52173261f9b844f1f44d0b79be9193d1b1bf33.zip
Allow standalone debug for non-default ${PROG} targets
This allows WITH_DEBUG_FILES to produce standalone debug for the ELF runtime linker. We previously disabled standalone debug files for bsd.prog.mk consumers that included a non-default ${PROG} target, but this is not required. Consumers that do not support standalone debug are still handled by disabling it for statically linked binaries, and for those that specify a non-default binary format. Sponsored by: DARPA, AFRL
Notes
Notes: svn path=/head/; revision=270976
Diffstat (limited to 'share/mk/bsd.prog.mk')
-rw-r--r--share/mk/bsd.prog.mk4
1 files changed, 1 insertions, 3 deletions
diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk
index c49b2bb44422..340950a3cdd2 100644
--- a/share/mk/bsd.prog.mk
+++ b/share/mk/bsd.prog.mk
@@ -29,9 +29,7 @@ CTFFLAGS+= -g
PROG= ${PROG_CXX}
.endif
-.if defined(PROG) && target(${PROG})
-MK_DEBUG_FILES= no
-.elif !empty(LDFLAGS:M-Wl,*--oformat,*) || !empty(LDFLAGS:M-static)
+.if !empty(LDFLAGS:M-Wl,*--oformat,*) || !empty(LDFLAGS:M-static)
MK_DEBUG_FILES= no
.endif