diff options
Diffstat (limited to 'graphite.sh.in')
-rw-r--r-- | graphite.sh.in | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/graphite.sh.in b/graphite.sh.in index 387c54598cb8..ba0d6bdc0968 100644 --- a/graphite.sh.in +++ b/graphite.sh.in @@ -14,8 +14,9 @@ build_options+=('graphite') buildenv_functions+=('buildenv_graphite') buildenv_graphite() { - if check_buildoption "graphite" "y"; then - CFLAGS+=" -fgraphite-identity -floop-nest-optimize -ftree-loop-distribution -ftree-vectorize" - CXXFLAGS+=" -fgraphite-identity -floop-nest-optimize -ftree-loop-distribution -ftree-vectorize" - fi + if check_buildoption "graphite" "y"; then + graphiteflags=" -fgraphite-identity -floop-nest-optimize -ftree-loop-distribution -ftree-vectorize" + CFLAGS+="$graphiteflags" + CXXFLAGS+="$graphiteflags" + fi } |