Skip to content

Commit 8bf67e2

Browse files
committed
mention --disable-instrumentation for MIPS | PowerPC | ARM, and provide a means to set it
1 parent 4ba0eca commit 8bf67e2

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

build.sh

+9-3
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,13 @@ case "$(lsb_release -cs)" in
2424
esac
2525

2626
# Extra "configure" options for libtorrent and rtorrent
27+
#
28+
# MIPS | PowerPC | ARM users, read https://github.com/rakshasa/rtorrent/issues/156
2729
export CFG_OPTS=""
28-
##export CFG_OPTS="--enable-debug --enable-extra-debug"
30+
##export CFG_OPTS="$CFG_OPTS --enable-debug --enable-extra-debug"
31+
export CFG_OPTS_LT="$CFG_OPTS"
32+
##export CFG_OPTS_LT="$CFG_OPTS_LT --disable-instrumentation"
33+
export CFG_OPTS_RT="$CFG_OPTS"
2934

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

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

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

0 commit comments

Comments
 (0)