0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-08 21:18:57 +02:00

ircd: Options package in preparation for lto.

This commit is contained in:
Jason Volk 2019-01-18 13:53:37 -08:00
parent 51c5ffbb5e
commit 0dd6abf9ca
2 changed files with 5 additions and 2 deletions

View file

@ -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"

View file

@ -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 \