diff options
Diffstat (limited to 'doc/tor-rpm-creation.txt')
-rw-r--r-- | doc/tor-rpm-creation.txt | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/doc/tor-rpm-creation.txt b/doc/tor-rpm-creation.txt index 9597cca5f6..9af2556b79 100644 --- a/doc/tor-rpm-creation.txt +++ b/doc/tor-rpm-creation.txt @@ -1,15 +1,13 @@ -## Instructions for building the official rpms. -## -These are instructions for building Tor binaries in the rpm format on +These are instructions for building Tor binaries in the rpm format on various cpu architectures and operating systems. Each rpm will require -glibc on the target system. It is believed that any rpm-based linux -distribution should have semi-current glibc installed by default. -If you run into a distribution that does not work with glibc, or does -not contain it, please let us know the details. +glibc on the target system. It is believed that any rpm-based linux +distribution should have semi-current glibc installed by default. +If you run into a distribution that does not work with glibc, or does +not contain it, please let us know the details. -These are the exact steps used to build the official rpms of Tor. +These are the exact same steps used to build the official rpms of Tor. -If you wish to further tune Tor binaries in rpm format beyond this list, +If you wish to further tune Tor binaries in rpm format beyond this list, see the GCC doc page for further options: http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gcc/ @@ -25,13 +23,14 @@ this: %define target_cpu i386 %define target_os linux + The three parameters: target, target_cpu, and target_os are used throughout the "make dist-rpm" process. They control the parameters -passed to "configure" and the final tuning of the binaries produced. +passed to "configure" and the final tuning of the binaries produced. The default settings, as shown above, create binaries for the widest -range of Intel x86 or x86-compatible architectures. +range of Intel x86 or compatible architectures. -The parameters can be set as follows: +The paramters can be set as follows: The "target" parameter: This should be "gnu", "redhat", or the short name of your linux distribution. @@ -40,6 +39,7 @@ Other possibilities are "mandrake" or "suse". This is passed to Therefore, this "target" parameter must be a valid OS for "configure" as well. + The "target_cpu" parameter: This parameter controls the optimization and tuning of your binaries via gcc and "configure". This parameter is passed to gcc via the -mtune= or @@ -49,7 +49,10 @@ through the --host, --build, and --target parameters. Therefore, this few common options for this parameter may be "athlon64, i686, pentium4" or others. + The "target_os" parameter: This parameter controls the target operating system. Normally, this is only "linux". If you wish to build rpms for a non-linux operating system, you can replace "linux" with your operating system. + + |