Skip to content

Commit 3f70cff

Browse files
committed
Another recipe for mayhem, III.
1 parent 4d6bf2f commit 3f70cff

File tree

1 file changed

+7
-2
lines changed
  • examples/tor_and_its_dependencies

1 file changed

+7
-2
lines changed

examples/tor_and_its_dependencies/Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ LLVMGET=get-bc
3333

3434
BITCODE = libz.a.bc libssl.a.bc libevent.a.bc tor.bc
3535

36-
all: ${BITCODE}
36+
all: tor.bc
37+
38+
39+
#${BITCODE}
3740

3841
${TOR_TARBALL}:
3942
wget ${TOR_URL}
@@ -42,7 +45,9 @@ ${TOR}: ${TOR_TARBALL}
4245
tar xvfz ${TOR_TARBALL}
4346

4447
${TOR_INSTALL}/bin/tor: ${TOR}
45-
cd ${TOR}; CC=${LLVMCC} ./configure --prefix=${TOR_INSTALL}; make && make install
48+
cd ${TOR}; CC=${LLVMCC} ./configure; make && make install
49+
#on linux we should try this:
50+
# cd ${TOR}; CC=${LLVMCC} ./configure --disable-dependency-tracking --enable-static-tor --with-openssl-dir=${OPENSSL_INSTALL} --with-libevent-dir=${LIBEVENT_INSTALL}/lib --with-zlib-dir=${ZLIB_INSTALL} --prefix=${TOR_INSTALL}; make && make install
4651

4752
tor.bc: ${TOR_INSTALL}/bin/tor
4853
cd ${TOR_INSTALL}/bin; ${LLVMGET} tor; mv tor.bc ${THISDIR}

0 commit comments

Comments
 (0)