From 2d3ad29006fc17b1b7ca7405d092e52e12ab8e01 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 7 May 2025 02:01:41 -0400 Subject: Makefile: document and fix static target. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index bcaaac0..d302211 100644 --- a/Makefile +++ b/Makefile @@ -61,8 +61,11 @@ clean: realclean: clean rm -f $(PROJ).8 usage.c +# this is a "private" target, not expected to work on random systems. +# It specifically works on Slackware 15.0, if the system/musl package +# from SlackBuilds.org is installed. static: clean - $(MAKE) CC=musl-gcc CFLAGS="$(COPT) $(CWARN) -nostdinc -isystem /usr/include/musl -isystem /usr/include -Wl,-s" + $(MAKE) CC=musl-gcc COPT="-static -nostdinc -isystem /usr/include/musl -isystem /usr/include -Wl,-s" mv $(PROJ) $(PROJ).static install: all -- cgit v1.2.3