diff options
author | B. Watson <urchlay@slackware.uk> | 2025-05-07 02:01:41 -0400 |
---|---|---|
committer | B. Watson <urchlay@slackware.uk> | 2025-05-07 02:01:41 -0400 |
commit | 2d3ad29006fc17b1b7ca7405d092e52e12ab8e01 (patch) | |
tree | 3bfe9d04259767bca26d4fa9b5da939ee5980c84 | |
parent | 5d644c9e9f038afd61ad51b08a28f74ad729f55d (diff) | |
download | marsond-2d3ad29006fc17b1b7ca7405d092e52e12ab8e01.tar.gz |
Makefile: document and fix static target.
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |