mirror of
https://github.com/open-simh/simh.git
synced 2026-04-25 20:01:33 +00:00
makefile: don't use -fwhole-program
The GCC documentation explicitly says not to use that option when -flto is used, and since that is the only place where the makefile was using it, remove it to conform to the documented rules.
This commit is contained in:
3
makefile
3
makefile
@@ -1317,9 +1317,6 @@ else
|
|||||||
ifneq (,$(LTO))
|
ifneq (,$(LTO))
|
||||||
ifneq (,$(findstring -flto,$(GCC_OPTIMIZERS)))
|
ifneq (,$(findstring -flto,$(GCC_OPTIMIZERS)))
|
||||||
CFLAGS_O += -flto
|
CFLAGS_O += -flto
|
||||||
ifneq (,$(and $(or $(findstring gcc,$(COMPILER_NAME)),$(findstring GCC,$(COMPILER_NAME))),$(findstring -fwhole-program,$(GCC_OPTIMIZERS))))
|
|
||||||
CFLAGS_O += -fwhole-program
|
|
||||||
endif
|
|
||||||
LTO_FEATURE = , with Link Time Optimization,
|
LTO_FEATURE = , with Link Time Optimization,
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user