summaryrefslogtreecommitdiffstats
path: root/packaging/docker/gen-cflags.sh
blob: f5ccab8a4aaaa1c1cfe9e1f2e4f771b81f08c493 (plain)
1
2
3
4
5
6
7
8
9
#!/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