Statically compile grml-runtty to avoid dependency on unstable's libc
authorMichael Prokop <mika@grml.org>
Wed, 5 Feb 2014 08:29:10 +0000 (09:29 +0100)
committerMichael Prokop <mika@grml.org>
Wed, 5 Feb 2014 08:35:18 +0000 (09:35 +0100)
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

index 61b4dcc..939d0d5 100644 (file)
@@ -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)