FreeBSD Bugzilla – Attachment 68719 Details for
Bug 100939
[patch] bsd.port.mk - add basic infrastructure support for debugging
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
with_debug.diff
with_debug.diff (text/plain), 1021 bytes, created by
Gabor Kovesdan
on 2006-07-27 22:40:21 UTC
(
hide
)
Description:
with_debug.diff
Filename:
MIME Type:
Creator:
Gabor Kovesdan
Created:
2006-07-27 22:40:21 UTC
Size:
1021 bytes
patch
obsolete
>--- bsd.port.mk.orig Wed Jul 26 17:10:58 2006 >+++ bsd.port.mk Wed Jul 26 17:52:54 2006 >@@ -289,6 +289,14 @@ > # usage inside the ports framework, and the latter are reserved for user- > # settable options. (Setting USE_* in /etc/make.conf is always wrong). > # >+# WITH_DEBUG - If set, debugging flags are added to CFLAGS and the >+# binaries don't get stripped by INSTALL_PROGRAM. >+# Besides, individual ports might add their specific >+# to produce binaries for debugging purposes. >+# You can override the debug flags that are passed to >+# the compiler by setting DEBUG_FLAGS. It is set to >+# "-g" at default. >+# > # USE_BZIP2 - If set, this port tarballs use bzip2, not gzip, for > # compression. > # USE_ZIP - If set, this port distfile uses zip, not tar w/[bg]zip >@@ -1509,6 +1517,12 @@ > CFLAGS:= ${CFLAGS:C/${_CPUCFLAGS}//} > .endif > .endif >+.endif >+ >+.if defined(WITH_DEBUG) && ${WITH_DEBUG} != "no" >+.undef STRIP >+DEBUG_FLAGS?= -g >+CFLAGS+= ${DEBUG_FLAGS} > .endif > > .if defined(NOPORTDOCS)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 100939
: 68719