From dce9788adf9fb7a406d650d291fbf8ae2298e92f Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Tue, 22 Nov 2022 22:31:53 +0000 Subject: [PATCH] Fix a bug when overriding CFLAGS with .env --- tools/bin/td | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/bin/td b/tools/bin/td index 5b0e3d4..37057d1 100644 --- a/tools/bin/td +++ b/tools/bin/td @@ -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"