mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
I was wrong. libtorrent-rasterbar need to be explicitly linked against homebrew openssl.
parent
367ddfc6b7
commit
ac4c52e05a
1 changed files with 4 additions and 4 deletions
|
@ -27,12 +27,12 @@ libtorrent 1.0.* <br/>
|
||||||
Or libtorrent 1.1.* <br/>
|
Or libtorrent 1.1.* <br/>
|
||||||
`git checkout RC_1_1`
|
`git checkout RC_1_1`
|
||||||
|
|
||||||
|
Edit the src/Makefile.am file. Find the libtorrent_rasterbar_la_LIBADD = line and add `@OPENSSL_LDFLAGS@` before `@OPENSSL_LIBS@`.
|
||||||
|
`sed -i “” -e "s/^\(libtorrent_rasterbar_la_LIBADD\)\(.*\)\(@OPENSSL_LIBS@\)/\1\2@OPENSSL_LDFLAGS@ \3/" src/Makefile.am`
|
||||||
|
|
||||||
`./autotool.sh`
|
`./autotool.sh`
|
||||||
|
|
||||||
`./configure --disable-debug --disable-dependency-tracking --disable-silent-rules --enable-encryption --prefix=/usr/local --with-boost=/usr/local/opt/boost CXXFLAGS=-std=c++11`<br/>
|
`./configure --disable-debug --disable-dependency-tracking --disable-silent-rules --enable-encryption --prefix=/usr/local --with-boost=/usr/local/opt/boost --with-openssl=/usr/local/opt/openssl CXXFLAGS=-std=c++11`<br/>
|
||||||
|
|
||||||
Since libtorrent does not directly call OpenSSL functions, you can delete `-lssl -lcrypto -lz` from the `libtorrent_rasterbar_la_LIBADD =` line in src/Makefile (If you are paranoid).<br/>
|
|
||||||
`sed -i "" -e "s/^\(libtorrent_rasterbar_la_LIBADD.*\) -lssl.*/\1/" src/Makefile`
|
|
||||||
|
|
||||||
`make -j4` where 4 is your number of cores
|
`make -j4` where 4 is your number of cores
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue