From 2fea94b544f0e5ecb2abc3bc1a3742831b9904f8 Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Wed, 5 Feb 2014 09:29:10 +0100 Subject: [PATCH] Statically compile grml-runtty to avoid dependency on unstable's libc It's annoying if grml-scripts can't be updated any longer on systems based for example on Debian/wheezy, so let's get rid of the dependency on libc. Compiling requires -lcompat, otherwise fails with: | undefined reference to `clearenv' --- compile/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile/Makefile b/compile/Makefile index 61b4dcc..939d0d5 100644 --- a/compile/Makefile +++ b/compile/Makefile @@ -24,7 +24,7 @@ reread_partition_table: reread_partition_table.c diet $(CC) $(CFLAGS) -o $@ $^ grml-runtty: grml-runtty.c - $(CC) $(CFLAGS) -o $@ $^ + diet $(CC) $(CFLAGS) -o $@ $^ -lcompat clean: rm -f $(PROGS) -- 2.1.4