Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107091621
D43837.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
505 B
Referenced Files
None
Subscribers
None
D43837.diff
View Options
diff --git a/sys/conf/kern.mk b/sys/conf/kern.mk
--- a/sys/conf/kern.mk
+++ b/sys/conf/kern.mk
@@ -256,6 +256,14 @@
.endif
.endif
+#
+# Some newer toolchains default to DWARF 5, which isn't supported by some build
+# tools yet.
+#
+.if (${CFLAGS:M-g} != "" || ${CFLAGS:M-g[0-3]} != "") && ${CFLAGS:M-gdwarf*} == ""
+CFLAGS+= -gdwarf-4
+.endif
+
CFLAGS+= ${CWARNFLAGS:M*} ${CWARNFLAGS.${.IMPSRC:T}}
CFLAGS+= ${CWARNFLAGS.${COMPILER_TYPE}}
CFLAGS+= ${CFLAGS.${COMPILER_TYPE}} ${CFLAGS.${.IMPSRC:T}}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 10, 11:41 PM (16 h, 27 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15747979
Default Alt Text
D43837.diff (505 B)
Attached To
Mode
D43837: build: Default to DWARF4 in the kernel
Attached
Detach File
Event Timeline
Log In to Comment