Skip to content

Commit

Permalink
mention --disable-instrumentation for MIPS | PowerPC | ARM, and provi…
Browse files Browse the repository at this point in the history
…de a means to set it
  • Loading branch information
pyroscope committed Mar 6, 2015
1 parent 4ba0eca commit 8bf67e2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,13 @@ case "$(lsb_release -cs)" in
esac

# Extra "configure" options for libtorrent and rtorrent
#
# MIPS | PowerPC | ARM users, read https://github.com/rakshasa/rtorrent/issues/156
export CFG_OPTS=""
##export CFG_OPTS="--enable-debug --enable-extra-debug"
##export CFG_OPTS="$CFG_OPTS --enable-debug --enable-extra-debug"
export CFG_OPTS_LT="$CFG_OPTS"
##export CFG_OPTS_LT="$CFG_OPTS_LT --disable-instrumentation"
export CFG_OPTS_RT="$CFG_OPTS"

# Try this when you get configure errors regarding xmlrpc-c
# ... on a Intel PC type system with certain types of CPUs:
Expand Down Expand Up @@ -294,10 +299,11 @@ build_deps() {

build() { # Build and install all components
( cd libtorrent-$LT_VERSION && ( test ${SVN:-0} = 0 || automagic ) \
&& ./configure $CFG_OPTS && make && make DESTDIR=$INST_DIR prefix= install )
&& ./configure $CFG_OPTS_LT && make && make DESTDIR=$INST_DIR prefix= install )
$SED_I s:/usr/local:$INST_DIR: $INST_DIR/lib/pkgconfig/*.pc $INST_DIR/lib/*.la
( cd rtorrent-$RT_VERSION && ( test ${SVN:-0} = 0 || automagic ) \
&& ./configure $CFG_OPTS --with-xmlrpc-c=$INST_DIR/bin/xmlrpc-c-config && make && make DESTDIR=$INST_DIR prefix= install )
&& ./configure $CFG_OPTS_RT --with-xmlrpc-c=$INST_DIR/bin/xmlrpc-c-config \
&& make && make DESTDIR=$INST_DIR prefix= install )
}

extend() { # Rebuild and install libtorrent and rTorrent with patches applied
Expand Down

0 comments on commit 8bf67e2

Please sign in to comment.