0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 07:23:53 +01:00

configure: Tweak debug/optimization cxxflags related.

This commit is contained in:
Jason Volk 2018-12-30 14:33:59 -08:00
parent a461e8a5aa
commit f5bc9721d8

View file

@ -397,9 +397,11 @@ dnl
dnl Optimization
dnl
CXXFLAGS+=" -O$optimize_level"
AM_COND_IF([OPTIMIZE],
[
CXXFLAGS+=" -O$optimize_level"
CXXFLAGS+=" -march=native"
CXXFLAGS+=" -fweb"
CXXFLAGS+=" -fdata-sections"
CXXFLAGS+=" -ffunction-sections"
@ -422,13 +424,10 @@ AM_COND_IF([OPTIMIZE],
dnl remember to axe this when lto is enabled
CXXFLAGS+=" -g"
CXXFLAGS+=" -ggdb"
CXXFLAGS+=" -ggnu-pubnames"
], [
CXXFLAGS+=" -march=native"
CXXFLAGS+=" -O$optimize_level"
CXXFLAGS+=" -g"
CXXFLAGS+=" -ggdb"
CXXFLAGS+=" -ggnu-pubnames"
CXXFLAGS+=" -fvar-tracking"
])
dnl