mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
Fix -flto flag compat erosion w/ gcc.
This commit is contained in:
parent
041c4822bc
commit
065343069a
2 changed files with 8 additions and 2 deletions
|
@ -43,11 +43,14 @@ endif
|
|||
endif
|
||||
|
||||
if LTO
|
||||
AM_CXXFLAGS += -flto=thin
|
||||
if GCC
|
||||
AM_CXXFLAGS += -flto=auto
|
||||
endif
|
||||
endif
|
||||
|
||||
if LTO
|
||||
if CLANG
|
||||
AM_CXXFLAGS += -flto=thin
|
||||
AM_CXXFLAGS += -fstrict-vtable-pointers
|
||||
AM_CXXFLAGS += -fwhole-program-vtables
|
||||
#AM_LDFLAGS += -Wl,-plugin-opt,-pass-remarks='.*'
|
||||
|
|
|
@ -34,11 +34,14 @@ AM_CXXFLAGS += -ftls-model=local-dynamic
|
|||
endif
|
||||
|
||||
if LTO
|
||||
AM_CXXFLAGS += -flto=thin
|
||||
if GCC
|
||||
AM_CXXFLAGS += -flto=auto
|
||||
endif
|
||||
endif
|
||||
|
||||
if LTO
|
||||
if CLANG
|
||||
AM_CXXFLAGS += -flto=thin
|
||||
AM_CXXFLAGS += -fstrict-vtable-pointers
|
||||
AM_CXXFLAGS += -fwhole-program-vtables
|
||||
endif
|
||||
|
|
Loading…
Reference in a new issue