From 845658e0ac5b83ce9ade110b398c8e13a7ceab08 Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Sun, 20 Nov 2022 01:40:55 +0000 Subject: [PATCH] Obscure bug when using OpenBSD make --- tools/bin/td | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"