mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 08:42:34 +01:00
ircd: Options package in preparation for lto.
This commit is contained in:
parent
51c5ffbb5e
commit
0dd6abf9ca
2 changed files with 5 additions and 2 deletions
|
@ -419,7 +419,7 @@ AM_COND_IF([OPTIMIZE],
|
|||
dnl is resolved
|
||||
dnl
|
||||
dnl CXXFLAGS+=" -flto"
|
||||
dnl CXXFLAGS+=" -fdevirtualize-at-ltrans"
|
||||
CXXFLAGS+=" -fdevirtualize-at-ltrans"
|
||||
|
||||
dnl remember to axe this when lto is enabled
|
||||
CXXFLAGS+=" -g"
|
||||
|
|
|
@ -45,10 +45,13 @@ AM_LDFLAGS = \
|
|||
-Wl,--gc-sections \
|
||||
-Wl,--icf=all \
|
||||
-Wl,--rosegment \
|
||||
-Wl,--whole-archive \
|
||||
-Wl,-z -Wl,initfirst \
|
||||
-Wl,-z -Wl,nodelete \
|
||||
-Wl,-z -Wl,nodlopen \
|
||||
-Wl,-z -Wl,now \
|
||||
-Wl,-z -Wl,combreloc \
|
||||
-Wl,-z -Wl,nocopyreloc \
|
||||
$(PLATFORM_LDFLAGS) \
|
||||
@EXTRA_LDFLAGS@ \
|
||||
###
|
||||
|
@ -94,8 +97,8 @@ libircd_la_LIBADD = \
|
|||
# the units that compile spirit grammars otherwise they thrash weaker
|
||||
# systems.
|
||||
libircd_la_SOURCES = \
|
||||
allocator.cc \
|
||||
info.cc \
|
||||
allocator.cc \
|
||||
exception.cc \
|
||||
util.cc \
|
||||
fpe.cc \
|
||||
|
|
Loading…
Reference in a new issue