]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Allow the kernel to build with a compiler that sets -fno-common.
authorBrooks Davis <brooks@FreeBSD.org>
Tue, 7 Apr 2020 15:32:08 +0000 (15:32 +0000)
committerBrooks Davis <brooks@FreeBSD.org>
Tue, 7 Apr 2020 15:32:08 +0000 (15:32 +0000)
commitab2b8d671bb3764e2b00d49f82819d571572a2d2
treec01c7dd9572cd891440b59466c19d9ce8f3e8598
parentcddd13a4f4f0e81a823bde57560bc3be13ffb9ad
Allow the kernel to build with a compiler that sets -fno-common.

The mechanism that generates assym.inc and offset.inc depends on the
symbols in question being common. For now, simply force the object files
to be created with -fcommon.

-fno-common will be the default in GCC10/LLVM11.

Submitted by: arichardson
Reviewed by: kevans
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D24322
sys/conf/kern.post.mk