summary refs log tree commit diff
path: root/doc/usedietlibc.html
diff options
context:
space:
mode:
authorGerrit Pape <pape@smarden.org>2001-11-26 11:32:40 +0000
committerGerrit Pape <pape@smarden.org>2001-11-26 11:32:40 +0000
commit7e507a2ad6374139711b5ce658aa7bbcdfe6a992 (patch)
tree0ac28aa30fc4186c90c8a4870592ca339c472d1b /doc/usedietlibc.html
parent0d5858dd050f2b21d4bf6691cf7233c1615eb3c6 (diff)
downloadrunit-7e507a2ad6374139711b5ce658aa7bbcdfe6a992.tar.gz
runit-7e507a2ad6374139711b5ce658aa7bbcdfe6a992.tar.xz
runit-7e507a2ad6374139711b5ce658aa7bbcdfe6a992.zip
forgot to add.
Diffstat (limited to 'doc/usedietlibc.html')
-rw-r--r--doc/usedietlibc.html62
1 files changed, 62 insertions, 0 deletions
diff --git a/doc/usedietlibc.html b/doc/usedietlibc.html
new file mode 100644
index 0000000..cc02f7d
--- /dev/null
+++ b/doc/usedietlibc.html
@@ -0,0 +1,62 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<title>runit - use dietlibc</title>
+</head>
+<body>
+<a href="http://smarden.org/pape/">G. Pape</a><br>
+<a href="index.html">runit</a><br>
+<hr>
+<h1>runit - use dietlibc</h1>
+<hr>
+Check that you have the recent version of
+<a href="http://www.fefe.de/dietlibc/">dietlibc</a> installed.
+<p>
+Change to the source directory of <i>runit</i> and modify the Makefile to
+use <tt>diet</tt>:
+<pre>
+  # cd /package/admin/runit/src
+  # vi Makefile
+</pre>
+Modify the <tt>CC</tt> and <tt>LDFLAGS</tt> variables in the
+<tt>Makefile</tt> to these settings:
+<pre>
+  CC=diet gcc
+  LDFLAGS=-Wall -O3 -s -Os -pipe
+</pre>
+Download
+<a href="ftp://ftp.innominate.org/pub/pape/djb/daemontools-pd-0.76.tar.gz">
+daemontools-pd-0.76.tar.gz</a>
+into <tt>/package/admin/runit/src</tt> and unpack the archive (this
+contains code from the daemontools-0.76 package which are in the Public
+domain):
+<pre>
+  # gunzip daemontools-pd-0.76.tar
+  # tar -xpf daemontools-pd-0.76.tar
+  # rm daemontools-pd-0.76.tar
+</pre>
+Tell <i>runit</i> to use this archive instead of the <i>daemontools</i>
+sources:
+<pre>
+  # rm -f support
+  # ln -s daemontools-pd-0.76 support
+</pre>
+Change the <tt>cc</tt> and <tt>ld</tt> settings for
+<tt>support</tt> to use <tt>diet</tt>:
+<pre>
+  # echo 'diet gcc -O2 -Wall' &gt; support/conf-cc
+  # echo 'diet gcc -s -Os -pipe' &gt; support/conf-ld
+</pre>
+Finally rebuild and install the <i>runit</i> programs:
+<pre>
+  # make clean
+  # cd ..
+  # package/install
+</pre>
+<hr>
+<address><a href="mailto:pape@smarden.org">
+Gerrit Pape &lt;pape@smarden.org&gt;
+</a></address>
+<small>$Id$</small>
+</body>
+</html>