comparison INSTALL @ 1739:13d834efc376 fuzz

merge from main
author Matt Johnston <matt@ucc.asn.au>
date Thu, 15 Oct 2020 19:55:15 +0800
parents 295377ecbf49
children 2bf1e97ba3cd
comparison
equal deleted inserted replaced
1562:768ebf737aa0 1739:13d834efc376
1 Basic Dropbear build instructions: 1 Basic Dropbear build instructions:
2 2
3 - Edit localoptions.h to set which features you want. Available options 3 - Edit localoptions.h to set which features you want. Available options
4 are described in default_options.h, these will be overridden by 4 are described in default_options.h, these will be overridden by
5 anything set in localoptions.h 5 anything set in localoptions.h
6 localoptions.h should be located in the build directory if you are
7 building out of tree.
6 8
7 - If using a Mercurial or Git checkout, "autoconf; autoheader" 9 - If using a Mercurial or Git checkout, "autoconf; autoheader"
8 10
9 - Configure for your system: 11 - Configure for your system:
10 ./configure (optionally with --disable-zlib or --disable-syslog, 12 ./configure (optionally with --disable-zlib or --disable-syslog,
23 make PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" install 25 make PROGRAMS="dropbear dbclient dropbearkey dropbearconvert scp" install
24 26
25 (you can leave items out of the PROGRAMS list to avoid compiling them. If you 27 (you can leave items out of the PROGRAMS list to avoid compiling them. If you
26 recompile after changing the PROGRAMS list, you *MUST* "make clean" before 28 recompile after changing the PROGRAMS list, you *MUST* "make clean" before
27 recompiling - bad things will happen otherwise) 29 recompiling - bad things will happen otherwise)
30
31 DEVELOPING.md has some notes on other developer topics, including debugging.
28 32
29 See MULTI for instructions on making all-in-one binaries. 33 See MULTI for instructions on making all-in-one binaries.
30 34
31 If you want to compile statically use ./configure --enable-static 35 If you want to compile statically use ./configure --enable-static
32 36
52 56
53 Compiling for uClibc should be the same as normal, just set CC to the magic 57 Compiling for uClibc should be the same as normal, just set CC to the magic
54 uClibc toolchain compiler (ie export CC=i386-uclibc-gcc or whatever). 58 uClibc toolchain compiler (ie export CC=i386-uclibc-gcc or whatever).
55 You can use "make STATIC=1" to make statically linked binaries, and it is 59 You can use "make STATIC=1" to make statically linked binaries, and it is
56 advisable to strip the binaries too. If you're looking to make a small binary, 60 advisable to strip the binaries too. If you're looking to make a small binary,
57 you should remove unneeded ciphers and MD5, by editing options.h 61 you should remove unneeded ciphers and MD5, by editing localoptions.h
58 62
59 It is possible to compile zlib in, by copying zlib.h and zconf.h into a 63 It is possible to compile zlib in, by copying zlib.h and zconf.h into a
60 subdirectory (ie zlibincludes), and 64 subdirectory (ie zlibincludes), and
61 65
62 export CFLAGS="-Izlibincludes -I../zlibincludes" 66 export CFLAGS="-Izlibincludes -I../zlibincludes"