lbry-android-sdk/p4a/pythonforandroid/recipes/libtorrent/user-config-openssl.patch
Akinwale Ariwodola 8b2694efb7
New build (#508)
* fix build for openssl 1.1.1b required for sdk
(cherry picked from commit aa49e3b2755b97b6331cdbbb89efc954de8d5977)

* use js code from master

* fix openssl recipe and tweak build
(cherry picked from commit 6e94c27021c7bd7b1e880c2fc314850e36a5a38e)

* remove unused build recipes
(cherry picked from commit f5c0577bdb175bfc0990602936bbc9e2052e1f25)
2019-03-30 21:58:45 +01:00

21 lines
855 B
Diff

--- boost/user-config.jam.orig 2018-12-07 14:16:45.911924859 +0100
+++ boost/user-config.jam 2018-12-07 14:20:16.243922853 +0100
@@ -9,6 +9,8 @@
local PYTHON_INCLUDE = [ os.environ PYTHON_INCLUDE ] ;
local PYTHON_LINK_VERSION = [ os.environ PYTHON_LINK_VERSION ] ;
local PYTHON_MAJOR_MINOR = [ os.environ PYTHON_MAJOR_MINOR ] ;
+local OPENSSL_BUILD_PATH = [ os.environ OPENSSL_BUILD_PATH ] ;
+local OPENSSL_VERSION = [ os.environ OPENSSL_VERSION ] ;
#using clang : $(ARCH) : $(ANDROID_BINARIES_PATH)/clang++ :
#<archiver>$(ANDROID_BINARIES_PATH)/llvm-ar
@@ -56,6 +58,9 @@
<linkflags>-Wl,-z,relro
<linkflags>-Wl,-z,now
<linkflags>-lc++_shared
+<linkflags>-L$(OPENSSL_BUILD_PATH)
+<linkflags>-lcrypto$(OPENSSL_VERSION)
+<linkflags>-lssl$(OPENSSL_VERSION)
<linkflags>-L$(PYTHON_ROOT)
<linkflags>-lpython$(PYTHON_LINK_VERSION)
<linkflags>-Wl,-O1