makefile: Remove -fcommon for gcc/clang builds

as discussed in #974
This commit is contained in:
Mark Pizzolato 2020-01-30 02:17:13 -08:00
parent 8198bac160
commit 5706465bff

View file

@ -1166,9 +1166,6 @@ else
ifneq (,$(findstring -fstrict-overflow,$(GCC_OPTIMIZERS))) ifneq (,$(findstring -fstrict-overflow,$(GCC_OPTIMIZERS)))
CFLAGS_O += -fno-strict-overflow CFLAGS_O += -fno-strict-overflow
endif endif
ifneq (,$(findstring -fcommon,$(GCC_OPTIMIZERS))$(findstring -fno-common,$(GCC_OPTIMIZERS)))
CFLAGS_O += -fcommon
endif
ifeq (,$(NO_LTO)) ifeq (,$(NO_LTO))
ifneq (,$(findstring -flto,$(GCC_OPTIMIZERS))) ifneq (,$(findstring -flto,$(GCC_OPTIMIZERS)))
CFLAGS_O += -flto -fwhole-program CFLAGS_O += -flto -fwhole-program