mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +00:00
Fix link time optimization gcc option
The previous line, LDFLAGS += $(CXXFLAGS), does not make sense, and breaks profile-build, thus changing it into: LDFLAGS += -flto. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
662d1859bd
commit
28bf56e725
1 changed files with 1 additions and 1 deletions
|
@ -319,7 +319,7 @@ ifeq ($(comp),gcc)
|
|||
GCC_MINOR := `$(CXX) -dumpversion | cut -f2 -d.`
|
||||
ifeq (1,$(shell expr \( $(GCC_MAJOR) \> 4 \) \| \( $(GCC_MAJOR) \= 4 \& $(GCC_MINOR) \>= 5 \)))
|
||||
CXXFLAGS += -flto
|
||||
LDFLAGS += $(CXXFLAGS)
|
||||
LDFLAGS += -flto
|
||||
endif
|
||||
endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue