mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 00:33:30 +00:00
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
This commit is contained in:
parent
006eb44926
commit
6f00f42ab6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=359432
@ -47,6 +47,11 @@ CFLAGS+= -I${CNTRB_GDB}/include
|
|||||||
CFLAGS+= -I${CNTRB_BU}/bfd
|
CFLAGS+= -I${CNTRB_BU}/bfd
|
||||||
CFLAGS+= -I${SYSROOT:U${DESTDIR}}/${INCLUDEDIR}/edit
|
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
|
GENSRCS+= nm.h tm.h
|
||||||
|
|
||||||
.if defined(GDB_CROSS_DEBUGGER)
|
.if defined(GDB_CROSS_DEBUGGER)
|
||||||
|
Loading…
Reference in New Issue
Block a user