summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-07-28 23:28:15 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-07-28 23:28:15 +0200
commit4a0ab3d2f390a68b18c40b04269c46a6373c08f9 (patch)
treede4b157e0aa4faf849167e5bb359e14407bf0be2
parent8995fbbaece599f27698bdc08ab4b6fdeb685e51 (diff)
downloadclectio-4a0ab3d2f390a68b18c40b04269c46a6373c08f9.tar.gz
clectio-4a0ab3d2f390a68b18c40b04269c46a6373c08f9.zip
make: honor $CC (CC ?= cc) so a gcc environment builds with plain `make`
Change the hard `CC = cc` to `CC ?= cc` so an exported CC (e.g. CC=gcc) is respected. Keeps the suckless default of cc for clones while letting a system whose `cc` is shadowed use plain `make` without passing CC= each time. Claude-Session: https://claude.ai/code/session_01S1CD1u3tgSS4xNu6WHfp5a
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index fb6d964..aa3896e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
# clectio -- tiny, fast, suckless daily readings
# Configure by editing config.h (copied from config.def.h on first build).
-CC = cc
+CC ?= cc
CFLAGS = -std=c99 -Os -Wall -Wextra
LDFLAGS = -s
PREFIX = /usr/local