Fix a bug when overriding CFLAGS with .env

This commit is contained in:
Jordan Bancino 2022-11-22 22:31:53 +00:00
parent b155d0dbe4
commit dce9788adf

View file

@ -30,10 +30,10 @@
: "${LDFLAGS:=-lm -pthread -static -flto -fdata-sections -ffunction-sections -s -Wl,-static -Wl,-gc-sections}"
: "${PROG:=telodendria}"
CFLAGS="${CFLAGS} ${DEFINES} ${INCLUDES}"
. "$(pwd)/tools/lib/common.sh"
CFLAGS="${CFLAGS} ${DEFINES} ${INCLUDES}"
if [ "$DEBUG" = "1" ]; then
CFLAGS="$CFLAGS -O0 -g"
LDFLAGS="-lm -pthread -v"