0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-03-14 21:22:57 +00:00
netdata_netdata/packaging/docker/gen-cflags.sh
Tasos Katsoulas 2d4e91ab50
Build optimizations (#15381)
Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud>
2023-07-18 15:05:49 +03:00

9 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