0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

configure.ac: parameter package.

This commit is contained in:
Jason Volk 2018-03-24 02:52:40 -07:00
parent c256b3fefb
commit 065370c38a
4 changed files with 19 additions and 2 deletions

View file

@ -24,7 +24,7 @@ AC_PATH_PROG(TOUCH, touch)
LT_INIT([dlopen shared disable-static])
LT_LANG([C++])
CXXFLAGS=""
CXXFLAGS="-pipe"
AC_PROG_CXX
AC_PROG_CXX_C_O
AC_PROG_LIBTOOL
@ -204,7 +204,6 @@ AM_COND_IF([DEBUG],
CXXFLAGS+=" -ggdb"
], [
CXXFLAGS+=" -O3"
CXXFLAGS+=" -ggdb"
CXXFLAGS+=" -fweb"
CXXFLAGS+=" -fdata-sections"
CXXFLAGS+=" -ffunction-sections"
@ -214,6 +213,18 @@ AM_COND_IF([DEBUG],
CXXFLAGS+=" -fgcse-after-reload"
CXXFLAGS+=" -fsched-stalled-insns=0"
CXXFLAGS+=" -frename-registers"
CXXFLAGS+=" -fira-hoist-pressure"
CXXFLAGS+=" -fbranch-target-load-optimize"
CXXFLAGS+=" -frerun-loop-opt"
dnl TODO: lto cannot be enabled until subobject linkage for json::tuple
dnl is resolved
dnl
dnl CXXFLAGS+=" -flto"
dnl CXXFLAGS+=" -fdevirtualize-at-ltrans"
dnl remember to axe this when lto is enabled
CXXFLAGS+=" -ggdb"
])

View file

@ -17,6 +17,8 @@ AM_LDFLAGS = \
-Wl,--no-gnu-unique \
-Wl,--no-allow-shlib-undefined \
-Wl,--no-undefined \
-Wl,--gc-sections \
-Wl,--icf=all \
-Wl,-z -Wl,now \
-L$(top_srcdir)/ircd \
-L$(top_srcdir)/modules \

View file

@ -34,6 +34,8 @@ AM_LDFLAGS = \
-Wl,--no-allow-shlib-undefined \
-Wl,--export-dynamic \
-Wl,--no-gnu-unique \
-Wl,--gc-sections \
-Wl,--icf=all \
-Wl,-z -Wl,now \
$(PLATFORM_LDFLAGS) \
# -Wl,--no-undefined \

View file

@ -29,6 +29,8 @@ AM_LDFLAGS += \
-Wl,--export-dynamic \
-Wl,--no-gnu-unique \
-Wl,--no-allow-shlib-undefined \
-Wl,--gc-sections \
-Wl,--icf=all \
$(PLATFORM_LDFLAGS) \
# -Wl,--no-undefined \
# -export-symbols-regex IRCD_MODULE* \