diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2020-04-10 14:01:07 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2020-04-10 14:01:07 +0000 |
commit | 879ce458f4076949632380ea11eb304c521d60c4 (patch) | |
tree | 8b19c64c6f005b76a2b61aec20a38d8c6753323a /gnu/usr.bin | |
parent | 73129d4797117a0cf410f4d55712d61df2a52bca (diff) | |
download | src-879ce458f4076949632380ea11eb304c521d60c4.tar.gz src-879ce458f4076949632380ea11eb304c521d60c4.zip |
userland build: replace -fno-common with ${CFCOMMONFLAG}
This change allows any downstream or otherwise consumer to easily override
the new -fno-common default on a temporary basis without having to hack into
src.sys.mk, and also makes it a bit easier to search for these specific
cases where -fno-common must be overridden with -fcommon or else the build
will fail.
The gdb build, the only program requiring -fcommon on head/, is switched
over as an example usage. It will need it on all branches, so this does not
harm future mergability.
MFC after: 3 days
Notes
Notes:
svn path=/head/; revision=359774
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r-- | gnu/usr.bin/gdb/Makefile.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/gdb/Makefile.inc b/gnu/usr.bin/gdb/Makefile.inc index 097975de3128..30d677726a00 100644 --- a/gnu/usr.bin/gdb/Makefile.inc +++ b/gnu/usr.bin/gdb/Makefile.inc @@ -50,7 +50,7 @@ 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 +CFCOMMONFLAG= -fcommon GENSRCS+= nm.h tm.h |