2 .\" mkbundle manual page.
3 .\" (C) 2004 Ximian, Inc.
5 .\" Miguel de Icaza (miguel@gnu.org)
7 .de Sp \" Vertical space (when we can't use .PP)
11 .TH mkbundle "mkbundle 1.0"
13 mkbundle \- Creates a bundled executable.
16 .B mkbundle [options] assembly1 [assembly2 ...]
18 \fImkbundle\fP generates an executable program that will contain
19 static copies of the assemblies listed on the command line. By
20 default only the assemblies specified in the command line will be
21 included in the bundle. To automatically include all of the
22 dependencies referenced, use the "--deps" command line option.
24 For example, to create a bundle for hello world, use the following
27 $ mkbundle -o hello hello.exe
30 The above will pull hello.exe native program called "hello". Notice
31 that the produced image still contains the CIL image and no
32 precompilation is done.
34 In addition, it is possible to control whether mkbundle should compile
35 the resulting executable or not. This is useful if you want to link
36 additional libraries or control the generated output in more detail.
37 For example, this could be used to link some libraries statically:
39 $ mkbundle -o host.c -oo bundles.o --deps hello.exe
41 $ cc host.c bundles.o /usr/lib/libmono.a -lc -lrt
46 Produce the stub file, do not compile the resulting stub.
49 Places the output on `out'. If the flag -c is specified, this is the
50 C host program. If not, this contains the resulting executable.
53 Specifies the name to be used for the helper object file that contains
57 Adds the `path' do the search list for assemblies. The rules are the
58 same as for the compiler -lib: or -L flags.
60 Specifies that a machine.config file must be bundled as well.
61 Typically this is $prefix/etc/mono/1.0/machine.config or
62 $prefix/etc/mono/2.0/machine.config depending on the profile that you
63 are using (1.0 or 2.0)
66 This is the default: mkbundle will only include the assemblies that
67 were specified on the command line to reduce the size of the resulting
71 This option will bundle all of the referenced assemblies for the
72 assemblies listed on the command line option. This is useful to
73 distribute a self-contained image.
76 By default mkbundle will delete the temporary files that it uses to
77 produce the bundle. This option keeps the file around.
80 By default mkbundle dynamically links to mono and glib. This option
81 causes it to statically link instead.
84 When passed, DIR will be set for the MONO_CFG_DIR environment variable
87 Compresses the assemblies before embedding. This results in smaller
88 executable files, but increases startup time and requires zlib to be
89 installed on the target system.
90 .SH ENVIRONMENT VARIABLES
93 Assembler command. The default is "as".
96 C compiler command. The default is "cc" under Linux and "gcc -mno-cygwin"
99 This program will load referenced assemblies from the Mono assembly
102 The options "--static" and "-z" are not supported under Windows.
103 Moreover, a full cygwin environment containing at least "gcc" and "as"
104 is required for the build process. The generated executable does not
107 Visit http://lists.ximian.com/mailman/listinfo/mono-devel-list for details.
109 Visit: http://www.mono-project.com for details
111 .BR mcs(1), mono(1), mono-config(5).