projects
/
grml-scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cb5cd8
)
Statically compile grml-runtty to avoid dependency on unstable's libc
author
Michael Prokop
<mika@grml.org>
Wed, 5 Feb 2014 08:29:10 +0000
(09:29 +0100)
committer
Michael 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
patch
|
blob
|
history
diff --git
a/compile/Makefile
b/compile/Makefile
index
61b4dcc
..
939d0d5
100644
(file)
--- 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)