aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile3
-rw-r--r--tomo.c1
2 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6e99c5e1..acf727b3 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,8 @@ VERSION=0.0.1
CC=gcc
CCONFIG=-std=c23 -Werror -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -fPIC -I. \
-fno-signed-zeros -fno-finite-math-only -fno-signaling-nans -fno-trapping-math \
- -fsanitize=signed-integer-overflow -fno-sanitize-recover -fvisibility=hidden -fdollars-in-identifiers
+ -fsanitize=signed-integer-overflow -fno-sanitize-recover -fvisibility=hidden -fdollars-in-identifiers \
+ -DGC_THREADS
LTO=-flto=auto -fno-fat-lto-objects -Wl,-flto
LDFLAGS=
# MAKEFLAGS := --jobs=$(shell nproc) --output-sync=target
diff --git a/tomo.c b/tomo.c
index a808d7d3..f095833c 100644
--- a/tomo.c
+++ b/tomo.c
@@ -46,6 +46,7 @@ static OptionalText_t autofmt = Text("sed '/^\\s*$/d' | indent -kr -l100 -nbbo -
cflags = Text("-Werror -fdollars-in-identifiers -std=gnu11 -Wno-trigraphs -fsanitize=signed-integer-overflow -fno-sanitize-recover"
" -fno-signed-zeros -fno-finite-math-only -fno-signaling-nans -fno-trapping-math"
" -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -D_DEFAULT_SOURCE -fPIC -ggdb"
+ " -DGC_THREADS"
" -I$HOME/.local/share/tomo/installed"),
ldlibs = Text("-lgc -lgmp -lm -ltomo"),
ldflags = Text("-Wl,-rpath='$ORIGIN',-rpath=$HOME/.local/share/tomo/lib -L. -L$HOME/.local/share/tomo/lib"),