aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2020-03-29 23:59:14 +0000
committerKyle Evans <kevans@FreeBSD.org>2020-03-29 23:59:14 +0000
commit6f00f42ab62c063f484054f12dece8fbe7bbc8dc (patch)
treeec41b0b92d16d0f794cee825fab5402e8e641f89 /gnu
parent006eb44926d6949e0b60b21920f1ea93f03efd2f (diff)
downloadsrc-6f00f42ab62c063f484054f12dece8fbe7bbc8dc.tar.gz
src-6f00f42ab62c063f484054f12dece8fbe7bbc8dc.zip
gdb: compile with -fcommon explicitly
As described in the comment, gdb relies on some of the linker magic that happens with -fcommon. I suspect the life expectancy of gdb-in-base is low enough that this isn't worth spending much time addressing, especially given the vintage. Hit it with the -fcommon hammer so that it continues to just work. MFC after: 3 days
Notes
Notes: svn path=/head/; revision=359432
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/gdb/Makefile.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/gnu/usr.bin/gdb/Makefile.inc b/gnu/usr.bin/gdb/Makefile.inc
index f7dd8452abad..68e7a6c3b986 100644
--- a/gnu/usr.bin/gdb/Makefile.inc
+++ b/gnu/usr.bin/gdb/Makefile.inc
@@ -47,6 +47,11 @@ CFLAGS+= -I${CNTRB_GDB}/include
CFLAGS+= -I${CNTRB_BU}/bfd
CFLAGS+= -I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/edit
+# Some bits here currently rely on some of the linker-merging magic that happens
+# with -fcommon. While this is the default right now, explicitly set -fcommon
+# so that it continues to build when the default flips.
+CFLAGS+= -fcommon
+
GENSRCS+= nm.h tm.h
.if defined(GDB_CROSS_DEBUGGER)