commit 5b0919af16d2abe00c15cbf20a8f2057eb9c485f
parent afebc45f0861e01d39dca21f9141fa39c2c602bd
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date: Wed, 24 Jun 2026 18:05:29 +0530
Merge pull request #2144 from N-R-K/hostcc
use HOST_{CC,CFLAGS} for icons generator
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -162,6 +162,10 @@ CFLAGS += $(CFLAGS_CURSES)
LDLIBS += $(LDLIBS_CURSES) -lpthread
+# For the icon hashtable generator
+HOST_CC ?= $(CC)
+HOST_CFLAGS ?= $(CFLAGS)
+
# static compilation needs libgpm development package
ifeq ($(strip $(O_STATIC)),1)
LDFLAGS += -static
@@ -225,7 +229,7 @@ norl: $(BIN)
nolc: $(BIN)
src/$(ICONS_INCLUDE): src/icons-hash.c src/icons.h src/icons-in-terminal.h
- $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -DICONS_GENERATE -o src/icons-hash-gen src/icons-hash.c
+ $(HOST_CC) $(HOST_CFLAGS) $(CPPFLAGS) -DICONS_GENERATE -o src/icons-hash-gen src/icons-hash.c
./src/icons-hash-gen > $@
install-desktop: $(DESKTOPFILE)