comparison MULTI @ 118:5312ca05ed48 private-rez

propagate of 717950f4061f1123659ee87c7c168805af920ab7 and 839f98f136788cc1466e4641bf796f96040a085d from branch 'matt.dbclient.authpam' to 'matt.dbclient.rez'
author Matt Johnston <matt@ucc.asn.au>
date Sun, 12 Sep 2004 04:56:50 +0000
parents 9597c2e3b9d4
children 93e04b9ff676
comparison
equal deleted inserted replaced
57:3b2a5a1c4347 118:5312ca05ed48
1 Multi-binary compilation 1 Multi-binary compilation
2 ======================== 2 ========================
3 3
4 To compile for systems without much space (floppy distributions etc), you 4 To compile for systems without much space (floppy distributions etc), you
5 can create a single binary. This will save disk space by avoiding repeated 5 can create a single binary. This will save disk space by avoiding repeated
6 code between the three components (dropbear, dropbearkey, dropbearconvert). 6 code between the various parts.
7 If you are familiar with "busybox", it's the same principle. 7 If you are familiar with "busybox", it's the same principle.
8 8
9 To use the multi-purpose binary, firstly enable the "#define DROPBEAR_MULTI" 9 To compile the multi-binary, first "make clean" (if you've compiled
10 line in options.h 10 previously), then
11 11
12 Then enable which of the binaries you want to compile, also in options.h 12 make PROGRAMS="programs you want here" MULTI=1
13 (by default these are all enabled).
14
15 You should then "make clean" (if you compiled previously), then
16
17 "make dropbearmulti"
18
19 ("make dropbearmultistatic" will make a static binary).
20 13
21 To use the binary, symlink it from the desired executable: 14 To use the binary, symlink it from the desired executable:
22 15
23 ln -s dropbearmulti dropbear 16 ln -s dropbearmulti dropbear
17 ln -s dropbearmulti dbclient
18 etc
24 19
25 then execute as normal: 20 then execute as normal:
26 21
27 ./dropbear <options here> 22 ./dropbear <options here>
28 23
29 "make install" doesn't currently work for multi-binary configuration, however 24 "make install" doesn't currently work for multi-binary configuration, though
30 in most situations where it is being used, the target and build systems will 25 in most situations where it is being used, the target and build systems will
31 differ. 26 differ.