mirror of
https://github.com/matrix-construct/construct
synced 2024-06-01 17:48:56 +02:00
configure: Tweak debug/optimization cxxflags related.
This commit is contained in:
parent
a461e8a5aa
commit
f5bc9721d8
|
@ -397,9 +397,11 @@ dnl
|
||||||
dnl Optimization
|
dnl Optimization
|
||||||
dnl
|
dnl
|
||||||
|
|
||||||
|
CXXFLAGS+=" -O$optimize_level"
|
||||||
|
|
||||||
AM_COND_IF([OPTIMIZE],
|
AM_COND_IF([OPTIMIZE],
|
||||||
[
|
[
|
||||||
CXXFLAGS+=" -O$optimize_level"
|
CXXFLAGS+=" -march=native"
|
||||||
CXXFLAGS+=" -fweb"
|
CXXFLAGS+=" -fweb"
|
||||||
CXXFLAGS+=" -fdata-sections"
|
CXXFLAGS+=" -fdata-sections"
|
||||||
CXXFLAGS+=" -ffunction-sections"
|
CXXFLAGS+=" -ffunction-sections"
|
||||||
|
@ -422,13 +424,10 @@ AM_COND_IF([OPTIMIZE],
|
||||||
dnl remember to axe this when lto is enabled
|
dnl remember to axe this when lto is enabled
|
||||||
CXXFLAGS+=" -g"
|
CXXFLAGS+=" -g"
|
||||||
CXXFLAGS+=" -ggdb"
|
CXXFLAGS+=" -ggdb"
|
||||||
CXXFLAGS+=" -ggnu-pubnames"
|
|
||||||
], [
|
], [
|
||||||
CXXFLAGS+=" -march=native"
|
|
||||||
CXXFLAGS+=" -O$optimize_level"
|
|
||||||
CXXFLAGS+=" -g"
|
CXXFLAGS+=" -g"
|
||||||
CXXFLAGS+=" -ggdb"
|
CXXFLAGS+=" -ggdb"
|
||||||
CXXFLAGS+=" -ggnu-pubnames"
|
CXXFLAGS+=" -fvar-tracking"
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
|
|
Loading…
Reference in a new issue