diff --git a/tools/bin/td b/tools/bin/td index 3b62631..5b0e3d4 100644 --- a/tools/bin/td +++ b/tools/bin/td @@ -26,11 +26,11 @@ : "${INCLUDES:=-Isrc/include}" : "${CC:=cc}" -: "${CFLAGS:=-Wall -Wextra -pedantic -std=c89 -O3 $DEFINES $INCLUDES}" +: "${CFLAGS:=-Wall -Wextra -pedantic -std=c89 -O3}" : "${LDFLAGS:=-lm -pthread -static -flto -fdata-sections -ffunction-sections -s -Wl,-static -Wl,-gc-sections}" : "${PROG:=telodendria}" -: "${PREFIX:=/usr/local}" +CFLAGS="${CFLAGS} ${DEFINES} ${INCLUDES}" . "$(pwd)/tools/lib/common.sh"