diff --git a/configure.ac b/configure.ac index 83719c46a..81fff69b9 100644 --- a/configure.ac +++ b/configure.ac @@ -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" diff --git a/ircd/Makefile.am b/ircd/Makefile.am index 0da32b8c4..cf4e3e8ed 100644 --- a/ircd/Makefile.am +++ b/ircd/Makefile.am @@ -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 \