|
@@ -3,7 +3,7 @@
|
|
|
|
|
|
## Instructions for building various rpms on various architectures
|
|
## Instructions for building various rpms on various architectures
|
|
#
|
|
#
|
|
-# This will build various architecture and cpu tuned versions of tor all
|
|
|
|
|
|
+# This will build various architecture and cpu tuned versions of tor
|
|
# bundled in a convenient rpm. Each rpm will require glibc on the target
|
|
# bundled in a convenient rpm. Each rpm will require glibc on the target
|
|
# system (which any rpm based linux distro should have already installed
|
|
# system (which any rpm based linux distro should have already installed
|
|
# by default). These are the exact same steps used to build the
|
|
# by default). These are the exact same steps used to build the
|
|
@@ -11,14 +11,14 @@
|
|
#
|
|
#
|
|
# If you wish to further tune tor rpms beyond this list, see the GCC doc
|
|
# If you wish to further tune tor rpms beyond this list, see the GCC doc
|
|
# page for further options:
|
|
# page for further options:
|
|
-# http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options
|
|
|
|
|
|
+# http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gcc/i386-and-x86_002d64-Options.html
|
|
#
|
|
#
|
|
# i386 with zero tuning (most compatible, should run on a true i386 cpu):
|
|
# i386 with zero tuning (most compatible, should run on a true i386 cpu):
|
|
# 1) download tor source tarball
|
|
# 1) download tor source tarball
|
|
# 2) at shell prompt, export CFLAGS="-march=i386 -mtune=i386"
|
|
# 2) at shell prompt, export CFLAGS="-march=i386 -mtune=i386"
|
|
# 3) in the extracted tor source dir, configure as follows:
|
|
# 3) in the extracted tor source dir, configure as follows:
|
|
# ./configure --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu --target=i386-pc-linux-gnu
|
|
# ./configure --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu --target=i386-pc-linux-gnu
|
|
-# 4) Edit tor.spec.in, change the following line:
|
|
|
|
|
|
+# 4) Edit tor.spec.in, find the following line:
|
|
# %configure --with-tor-user=%{toruser} --with-tor-group=%{torgroup}
|
|
# %configure --with-tor-user=%{toruser} --with-tor-group=%{torgroup}
|
|
# add to it:
|
|
# add to it:
|
|
# --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu --target=i386-pc-linux-gnu
|
|
# --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu --target=i386-pc-linux-gnu
|
|
@@ -31,7 +31,7 @@
|
|
# 2) at shell prompt, export CFLAGS="-march=i686 -mtune=i686"
|
|
# 2) at shell prompt, export CFLAGS="-march=i686 -mtune=i686"
|
|
# 3) in the extracted tor source dir, configure as follows:
|
|
# 3) in the extracted tor source dir, configure as follows:
|
|
# ./configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu
|
|
# ./configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu
|
|
-# 4) Edit tor.spec.in, change the following line:
|
|
|
|
|
|
+# 4) Edit tor.spec.in, find the following line:
|
|
# %configure --with-tor-user=%{toruser} --with-tor-group=%{torgroup}
|
|
# %configure --with-tor-user=%{toruser} --with-tor-group=%{torgroup}
|
|
# add to it:
|
|
# add to it:
|
|
# --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu
|
|
# --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu
|
|
@@ -43,7 +43,7 @@
|
|
# 2) at shell prompt, export CFLAGS="-march=athlon64 -mtune=athlon64"
|
|
# 2) at shell prompt, export CFLAGS="-march=athlon64 -mtune=athlon64"
|
|
# 3) in the extracted tor source dir, configure as follows:
|
|
# 3) in the extracted tor source dir, configure as follows:
|
|
# ./configure --build=athlon64-pc-linux-gnu --host=athlon64-pc-linux-gnu --target=athlon64-pc-linux-gnu
|
|
# ./configure --build=athlon64-pc-linux-gnu --host=athlon64-pc-linux-gnu --target=athlon64-pc-linux-gnu
|
|
-# 4) Edit tor.spec.in, change the following line:
|
|
|
|
|
|
+# 4) Edit tor.spec.in, find the following line:
|
|
# %configure --with-tor-user=%{toruser} --with-tor-group=%{torgroup}
|
|
# %configure --with-tor-user=%{toruser} --with-tor-group=%{torgroup}
|
|
# add to it:
|
|
# add to it:
|
|
# --build=athlon64-pc-linux-gnu --host=athlon64-pc-linux-gnu --target=athlon64-pc-linux-gnu
|
|
# --build=athlon64-pc-linux-gnu --host=athlon64-pc-linux-gnu --target=athlon64-pc-linux-gnu
|