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"