ports/185309: [PATCH] Mk/bsd.port.mk: add generic INSTALL_STRIPPED option for use with WITH_DEBUG
Xin LI
delphij at FreeBSD.org
Mon Dec 30 20:50:02 UTC 2013
>Number: 185309
>Category: ports
>Synopsis: [PATCH] Mk/bsd.port.mk: add generic INSTALL_STRIPPED option for use with WITH_DEBUG
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Mon Dec 30 20:50:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: Xin LI
>Release: FreeBSD 11.0-CURRENT amd64
>Organization:
iXsystems, Inc.
>Environment:
System: FreeBSD freefall.freebsd.org 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r259961: Fri Dec 27 21:56:39 UTC 2013 peter at freefall.freebsd.org:/usr/obj/usr/src/sys/FREEFALL amd64
>Description:
(Note that this patch is from Alfred Perlstein).
This proposed bsd.port.mk change adds a new option, INSTALL_STRIPPED,
which is intended to be used with WITH_DEBUG, allowing the system to build
packages with debugging symbols enabled and kept in build environment but
do not install them with the resulting binaries.
>How-To-Repeat:
>Fix:
--- bsd.port.mk.diff begins here ---
Index: Mk/bsd.port.mk
===================================================================
--- Mk/bsd.port.mk (revision 337471)
+++ Mk/bsd.port.mk (working copy)
@@ -1318,7 +1318,7 @@ WITH_DEBUG= yes
.endif
# Reset value from bsd.own.mk.
-.if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG)
+.if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG) && !defined(INSTALL_STRIPPED)
STRIP= #none
.endif
@@ -1617,7 +1617,9 @@ CFLAGS:= ${CFLAGS:C/${_CPUCFLAGS}//}
.endif
.if defined(WITH_DEBUG) && !defined(WITHOUT_DEBUG)
+.if !defined(INSTALL_STRIPPED)
STRIP_CMD= ${TRUE}
+.endif
DEBUG_FLAGS?= -g
CFLAGS:= ${CFLAGS:N-O*:N-fno-strict*} ${DEBUG_FLAGS}
.endif
--- bsd.port.mk.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list