aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
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