diff options
author | emaste <emaste@FreeBSD.org> | 2014-09-08 15:28:17 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2014-09-08 15:28:17 +0000 |
commit | e7480b54c3fb361354c8ed5cebda10eea16dbc0a (patch) | |
tree | 013b7581508c5aea15f94290013a0f9c671d87f9 | |
parent | f9220a91f7df3fc82e8e642a2f599308a430f068 (diff) | |
download | FreeBSD-src-e7480b54c3fb361354c8ed5cebda10eea16dbc0a.zip FreeBSD-src-e7480b54c3fb361354c8ed5cebda10eea16dbc0a.tar.gz |
MFC r270976: 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
Approved by: re
-rw-r--r-- | share/mk/bsd.prog.mk | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/share/mk/bsd.prog.mk b/share/mk/bsd.prog.mk index 159e879..6c2effb 100644 --- a/share/mk/bsd.prog.mk +++ b/share/mk/bsd.prog.mk @@ -28,9 +28,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 |