netdata_netdata/packaging/docker/gen-cflags.sh

10 lines
238 B
Bash
Executable File

#!/bin/sh
if [ -n "${CFLAGS}" ]; then
echo "${CFLAGS}"
elif [ -n "${DEBUG_BUILD}" ]; then
echo "-ffunction-sections -fdata-sections -Og -ggdb -pipe"
else
echo "-ffunction-sections -fdata-sections -O2 -funroll-loops -pipe"
fi