mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 01:03:09 +00:00
Fix gcc name used in Link Time Optimization
Use $(CXX) instead of assuming compiler name is 'gcc' Spotted by Louis Zulli. No functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
dfd030b67a
commit
2b1324eddb
1 changed files with 2 additions and 2 deletions
|
@ -315,8 +315,8 @@ endif
|
|||
### This is a mix of compile and link time options because the lto link phase
|
||||
### needs access to the optimization flags.
|
||||
ifeq ($(comp),gcc)
|
||||
GCC_MAJOR := `gcc -dumpversion | cut -f1 -d.`
|
||||
GCC_MINOR := `gcc -dumpversion | cut -f2 -d.`
|
||||
GCC_MAJOR := `$(CXX) -dumpversion | cut -f1 -d.`
|
||||
GCC_MINOR := `$(CXX) -dumpversion | cut -f2 -d.`
|
||||
ifeq (1,$(shell expr \( $(GCC_MAJOR) \> 4 \) \| \( $(GCC_MAJOR) \= 4 \& $(GCC_MINOR) \>= 5 \)))
|
||||
CXXFLAGS += -flto
|
||||
LDFLAGS += $(CXXFLAGS)
|
||||
|
|
Loading…
Add table
Reference in a new issue