Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Sep 2014 19:05:34 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r270976 - head/share/mk
Message-ID:  <201409021905.s82J5YHf003527@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409021905.s82J5YHf003527>