Page MenuHomeFreeBSD

D12025.id32057.diff
No OneTemporary

D12025.id32057.diff

Index: share/mk/bsd.lib.mk
===================================================================
--- share/mk/bsd.lib.mk
+++ share/mk/bsd.lib.mk
@@ -69,8 +69,8 @@
.if ${MK_DEBUG_FILES} != "no" && empty(DEBUG_FLAGS:M-g) && \
empty(DEBUG_FLAGS:M-gdwarf*)
-SHARED_CFLAGS+= -g
-SHARED_CXXFLAGS+= -g
+CFLAGS+= ${DEBUG_FILES_CFLAGS}
+CXXFLAGS+= ${DEBUG_FILES_CFLAGS}
CTFFLAGS+= -g
.endif
Index: share/mk/bsd.prog.mk
===================================================================
--- share/mk/bsd.prog.mk
+++ share/mk/bsd.prog.mk
@@ -39,7 +39,9 @@
.else
.if ${MK_DEBUG_FILES} != "no" && empty(DEBUG_FLAGS:M-g) && \
empty(DEBUG_FLAGS:M-gdwarf-*)
-CFLAGS+= -g
+CFLAGS+= ${DEBUG_FILES_CFLAGS}
+#TODO
+#CXXFLAGS+= ${DEBUG_FILES_CFLAGS}
CTFFLAGS+= -g
.endif
.endif
Index: share/mk/bsd.sys.mk
===================================================================
--- share/mk/bsd.sys.mk
+++ share/mk/bsd.sys.mk
@@ -212,6 +212,10 @@
CFLAGS+= ${SSP_CFLAGS}
.endif # SSP && !ARM && !MIPS
+# Additional flags passed in CFLAGS and CXXFLAGS when MK_DEBUG_FILES is
+# enabled.
+DEBUG_FILES_CFLAGS?= -g
+
# Allow user-specified additional warning flags, plus compiler and file
# specific flag overrides, unless we've overriden this...
.if ${MK_WARNS} != "no"
Index: usr.bin/clang/Makefile.inc
===================================================================
--- usr.bin/clang/Makefile.inc
+++ usr.bin/clang/Makefile.inc
@@ -2,4 +2,6 @@
WARNS?= 0
+DEBUG_FILES_CFLAGS= -gline-tables-only
+
.include "../Makefile.inc"

File Metadata

Mime Type
text/plain
Expires
Fri, Mar 20, 4:52 AM (8 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29999590
Default Alt Text
D12025.id32057.diff (1 KB)

Event Timeline