From 46cd0edaf8f5849c0e4f5500c0189f7ec0eeb6b5 Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Thu, 11 Aug 2022 19:32:47 -0400 Subject: [PATCH] Add verbose flag to LDFLAGS when in debug mode. --- tools/bin/td | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/bin/td b/tools/bin/td index a77f864..a7f3df3 100644 --- a/tools/bin/td +++ b/tools/bin/td @@ -27,7 +27,7 @@ : "${CC:=cc}" : "${CFLAGS:=-Wall -Wextra -pedantic -ansi -std=c89 -O3 $DEFINES $INCLUDES}" -: "${LDFLAGS:=-static -flto -fdata-sections -ffunction-sections -s -Wl,-static -Wl,-gc-sections}" +: "${LDFLAGS:=-pthread -static -flto -fdata-sections -ffunction-sections -s -Wl,-static -Wl,-gc-sections}" : "${PROG:=telodendria}" # If a .env file exists in the current directory, we load it. @@ -41,7 +41,7 @@ fi if [ "$DEBUG" = "1" ]; then CFLAGS="$CFLAGS -O0 -g" - LDFLAGS="" + LDFLAGS="$LDFLAGS -v" PROG="$PROG-debug" fi