From 5100c4e7e9cc5e06cf32e06a5a0bd0d79d7655c6 Mon Sep 17 00:00:00 2001 From: Andrew Robbins Date: Fri, 22 Dec 2017 20:35:04 -0500 Subject: Statically link bucts --- projects/bucts/sources/Makefile | 2 +- projects/bucts/sources/bucts.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/bucts/sources/Makefile b/projects/bucts/sources/Makefile index b5f43d5f..2b165f3e 100644 --- a/projects/bucts/sources/Makefile +++ b/projects/bucts/sources/Makefile @@ -10,7 +10,7 @@ endif all: bucts bucts: $(OBJ) - $(CC) -o $@ $(OBJ) $(LDFLAGS) -lpci + $(CC) -o $@ $(OBJ) $(LDFLAGS) -lpci -lz -static %.o: %.c $(CC) $(CFLAGS) -DVERSION='"$(VERSION)"' -c $< diff --git a/projects/bucts/sources/bucts.c b/projects/bucts/sources/bucts.c index 16e82c7a..9e3c1708 100644 --- a/projects/bucts/sources/bucts.c +++ b/projects/bucts/sources/bucts.c @@ -1,4 +1,4 @@ -/* compile: gcc -s -o bucts bucts.c -lpci or: make +/* compile: gcc -s -o bucts bucts.c -lpci -lz -static or: make * run as root: ./bucts [0|1] */ /* -- cgit v1.2.3-70-g09d2