svn commit: r270976 - head/share/mk

Ed Maste emaste at FreeBSD.org
Tue Sep 2 19:05:34 UTC 2014


Author: emaste
Date: Tue Sep  2 19:05:34 2014
New Revision: 270976
URL: http://svnweb.freebsd.org/changeset/base/270976

Log:
  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

Modified:
  head/share/mk/bsd.prog.mk

Modified: head/share/mk/bsd.prog.mk
==============================================================================
--- head/share/mk/bsd.prog.mk	Tue Sep  2 18:57:19 2014	(r270975)
+++ head/share/mk/bsd.prog.mk	Tue Sep  2 19:05:34 2014	(r270976)
@@ -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
 


More information about the svn-src-head mailing list