aboutsummaryrefslogtreecommitdiff
path: root/projects/bucts/sources
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2017-12-22 20:35:04 -0500
committerAndrew Robbins <contact@andrewrobbins.info>2017-12-22 22:03:07 -0500
commit5100c4e7e9cc5e06cf32e06a5a0bd0d79d7655c6 (patch)
tree77c353cb7eb58dc470660582ae2980a230633780 /projects/bucts/sources
parentbddb45d1e7962d538fd67c58102cbb15b87389ec (diff)
downloadlibrebootfr-5100c4e7e9cc5e06cf32e06a5a0bd0d79d7655c6.tar.gz
librebootfr-5100c4e7e9cc5e06cf32e06a5a0bd0d79d7655c6.zip
Statically link bucts
Diffstat (limited to 'projects/bucts/sources')
-rw-r--r--projects/bucts/sources/Makefile2
-rw-r--r--projects/bucts/sources/bucts.c2
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]
*/
/*