comparison INSTALL @ 1493:72fd994fe7bd

Update build instructions for localoptions, and tidy
author Matt Johnston <matt@ucc.asn.au>
date Wed, 14 Feb 2018 00:24:32 +0800
parents 8f88f4290b22
children d35cf9a5e0b5
comparison
equal deleted inserted replaced
1492:bd46cf0e245a 1493:72fd994fe7bd
1 Basic Dropbear build instructions: 1 Basic Dropbear build instructions:
2 2
3 - Edit options.h to set which features you want. 3 - Edit localoptions.h to set which features you want. Available options
4 - Edit debug.h if you want any debug options (not usually required). 4 are described in default_options.h.in, these will be overridden by
5 anything set in localoptions.h
5 6
6 (If using a non-tarball copy, "autoconf; autoheader") 7 - If using a Mercurial or Git checkout, "autoconf; autoheader"
7 8
8 ./configure (optionally with --disable-zlib or --disable-syslog, 9 - Configure for your system:
10 ./configure (optionally with --disable-zlib or --disable-syslog,
9 or --help for other options) 11 or --help for other options)
10 12
11 Now compile: 13 - Compile:
12 14
13 make PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" 15 make PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp"
14 16
15 And install (/usr/local/bin is usual default): 17 - Optionally install, or copy the binaries another way
16 18
17 make PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" install 19 make install (/usr/local/bin is usual default):
20
21 or
22
23 make PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" install
18 24
19 (you can leave items out of the PROGRAMS list to avoid compiling them. If you 25 (you can leave items out of the PROGRAMS list to avoid compiling them. If you
20 recompile after changing the PROGRAMS list, you *MUST* "make clean" before 26 recompile after changing the PROGRAMS list, you *MUST* "make clean" before
21 recompiling - bad things will happen otherwise) 27 recompiling - bad things will happen otherwise)
22 28
23 See MULTI for instructions on making all-in-one binaries. 29 See MULTI for instructions on making all-in-one binaries.
24 30
25 If you want to compile statically use ./configure --enable-static 31 If you want to compile statically use ./configure --enable-static
26 32
27 By default Dropbear adds various build flags that improve robustness 33 By default Dropbear adds various build flags that improve robustness
28 against programming bugs (good for security) - if these cause problems 34 against programming bugs (good for security). If these cause problems
29 they can be disabled with ./configure --disable-harden 35 they can be disabled with ./configure --disable-harden
30 36
31 Binaries can be stripped with "make strip" 37 Binaries can be stripped with "make strip"
32 38
33 ============================================================================ 39 ============================================================================