Skip to content

Commit

Permalink
Working on linux compilation script.
Browse files Browse the repository at this point in the history
  • Loading branch information
aldenml committed Nov 2, 2014
1 parent b166d98 commit 90ee5c5
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions build/build_linux.sh
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
#!/bin/bash

#$BOOST_ROOT
#$LIBTORRENT_ROOT
#sudo add-apt-repository ppa:deluge-team/develop
#sudo apt-get update
#sudo apt-get install libtorrent-rasterbar8
#$LIBTORRENT_LIBS

#export CXXFLAGS="-std=c++11 -O3 -I$BOOST_ROOT"
#$BOOST_ROOT/b2 variant=release link=static --stagedir=linux stage
#$BOOST_ROOT/bjam toolset=gcc variant=release link=static deprecated-functions=off

JDK_INCLUDE_1=/usr/lib/jvm/java-7-openjdk-amd64/include
JDK_INCLUDE_2=/usr/lib/jvm/java-7-openjdk-amd64/include/linux

CXX=g++
DEFINES="-DNDEBUG=1 -DBOOST_ASIO_DYN_LINK=1 -DTORRENT_USE_CLOCK_GETTIME=1 -DTORRENT_DISABLE_GEO_IP=1"
INCLUDES="-I$LIBTORRENT_ROOT/include -I$JDK_INCLUDE_1 -I$JDK_INCLUDE_2"
LIBS="-l:libtorrent-rasterbar.so.8"
DEFINES="-DNDEBUG=1 -DBOOST_ASIO_SEPARATE_COMPILATION=1 -DTORRENT_USE_CLOCK_GETTIME=1 -DTORRENT_DISABLE_GEO_IP=1 -DTORRENT_NO_DEPRECATE=1"
INCLUDES="-I$BOOST_ROOT -I$LIBTORRENT_ROOT/include -I$JDK_INCLUDE_1 -I$JDK_INCLUDE_2"
LIBS="-ltorrent -lboost_system -lboost_chrono -lboost_date_time -lboost_thread"
CXXFLAGS="-fPIC -fno-strict-aliasing -O3"
LDFLAGS="-fPIC -Wl,-Bsymbolic"
TARGET="libjlibtorrent.so"
Expand Down

0 comments on commit 90ee5c5

Please sign in to comment.