summaryrefslogtreecommitdiff
path: root/contrib/cross.sh
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2006-05-23 15:06:05 +0000
committerRoger Dingledine <arma@torproject.org>2006-05-23 15:06:05 +0000
commitb65c43939e6ee89dc72f253f63fc06a9eaa0f53e (patch)
tree1f2e729cae354a0dc0a1500f3d340ca06581b968 /contrib/cross.sh
parent21a05b3ba551ef2b1db605520a6e13bdda4c8a34 (diff)
downloadtor-b65c43939e6ee89dc72f253f63fc06a9eaa0f53e.tar.gz
tor-b65c43939e6ee89dc72f253f63fc06a9eaa0f53e.zip
trim out the parts of cross.sh that don't make sense now that we've
applied cross-path directly. also, now we can run cross.sh from the tarball, not just from cvs. svn:r6477
Diffstat (limited to 'contrib/cross.sh')
-rw-r--r--contrib/cross.sh27
1 files changed, 5 insertions, 22 deletions
diff --git a/contrib/cross.sh b/contrib/cross.sh
index 09d5af70e3..890e4496de 100644
--- a/contrib/cross.sh
+++ b/contrib/cross.sh
@@ -1,13 +1,11 @@
#!/bin/bash
# $Id$
-# Copyright 2006 Michael Mohr
+# Copyright 2006 Michael Mohr with modifications by Roger Dingledine
# See LICENSE for licensing information.
#######################################################################
# Tor-cross: a tool to help cross-compile Tor
#
-# mailto:tor-assistants@freehaven.net
-#
# The purpose of a cross-compiler is to produce an executable for
# one system (CPU) on another. This is useful, for example, when
# the target system does not have a native compiler available.
@@ -15,10 +13,6 @@
# host (the computer you're working on now) for a target such as
# a router or handheld computer.
#
-# This script automatically patches two files in the Tor source:
-# configure.in : remove test programs
-# compat.h : remove check for NULL==0
-#
# A number of environment variables must be set in order for this
# script to work:
# $PREFIX, $CROSSPATH, $ARCH_PREFIX, $HOST,
@@ -53,10 +47,10 @@
#
#######################################################################
-# disable some show-stopping bugs (see cross.patch for more)
+# disable the platform-specific tests in configure
export CROSS_COMPILE=yes
-if [ ! -f configure.in ]
+if [ ! -f configure ]
then
echo "Please run this script from the root of the Tor distribution."
exit -1
@@ -109,19 +103,7 @@ then
make clean
fi
-# check if the source has already been patched
-patch -f -p1 -R --dry-run < contrib/cross.patch > /dev/null 2>&1
-# if it hasn't, rerun the autotools
-if [ $? -ne 0 ]
-then
- patch -p1 < contrib/cross.patch
- aclocal
- autoconf
- autoheader
- automake --add-missing
-fi
-
-# Set up the buld environment and try to run configure
+# Set up the build environment and try to run configure
export PATH=$PATH:$CROSSPATH
export RANLIB=${ARCH_PREFIX}ranlib
export CC=${ARCH_PREFIX}gcc
@@ -165,3 +147,4 @@ echo ""
echo "Tor should be compiled at this point. Now run 'make install' to"
echo "install to $PREFIX"
echo ""
+