forked from Telodendria/Telodendria
Add verbose flag to LDFLAGS when in debug mode.
This commit is contained in:
parent
9cf2266ece
commit
46cd0edaf8
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@
|
||||||
|
|
||||||
: "${CC:=cc}"
|
: "${CC:=cc}"
|
||||||
: "${CFLAGS:=-Wall -Wextra -pedantic -ansi -std=c89 -O3 $DEFINES $INCLUDES}"
|
: "${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}"
|
: "${PROG:=telodendria}"
|
||||||
|
|
||||||
# If a .env file exists in the current directory, we load it.
|
# If a .env file exists in the current directory, we load it.
|
||||||
|
@ -41,7 +41,7 @@ fi
|
||||||
|
|
||||||
if [ "$DEBUG" = "1" ]; then
|
if [ "$DEBUG" = "1" ]; then
|
||||||
CFLAGS="$CFLAGS -O0 -g"
|
CFLAGS="$CFLAGS -O0 -g"
|
||||||
LDFLAGS=""
|
LDFLAGS="$LDFLAGS -v"
|
||||||
PROG="$PROG-debug"
|
PROG="$PROG-debug"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue