mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 00:34:18 +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
|
endif
|
||||||
|
|
||||||
if LTO
|
if LTO
|
||||||
AM_CXXFLAGS += -flto=thin
|
if GCC
|
||||||
|
AM_CXXFLAGS += -flto=auto
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if LTO
|
if LTO
|
||||||
if CLANG
|
if CLANG
|
||||||
|
AM_CXXFLAGS += -flto=thin
|
||||||
AM_CXXFLAGS += -fstrict-vtable-pointers
|
AM_CXXFLAGS += -fstrict-vtable-pointers
|
||||||
AM_CXXFLAGS += -fwhole-program-vtables
|
AM_CXXFLAGS += -fwhole-program-vtables
|
||||||
#AM_LDFLAGS += -Wl,-plugin-opt,-pass-remarks='.*'
|
#AM_LDFLAGS += -Wl,-plugin-opt,-pass-remarks='.*'
|
||||||
|
|
|
@ -34,11 +34,14 @@ AM_CXXFLAGS += -ftls-model=local-dynamic
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if LTO
|
if LTO
|
||||||
AM_CXXFLAGS += -flto=thin
|
if GCC
|
||||||
|
AM_CXXFLAGS += -flto=auto
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if LTO
|
if LTO
|
||||||
if CLANG
|
if CLANG
|
||||||
|
AM_CXXFLAGS += -flto=thin
|
||||||
AM_CXXFLAGS += -fstrict-vtable-pointers
|
AM_CXXFLAGS += -fstrict-vtable-pointers
|
||||||
AM_CXXFLAGS += -fwhole-program-vtables
|
AM_CXXFLAGS += -fwhole-program-vtables
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in a new issue