From a05fbf5d92af428bd460c2797304279a5d926861 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=83=9C=E5=88=AB?= Date: Sun, 4 Apr 2021 01:26:00 +0800 Subject: [PATCH 1/3] update openssl to avoid CVE-2021-3449 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3449 --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 8e9b841..44e9d25 100644 --- a/install.sh +++ b/install.sh @@ -4,7 +4,7 @@ INSTALL_VERSION="" -OPENSSL_VERSION="1.1.1j" +OPENSSL_VERSION="1.1.1k" LATEST=0 @@ -198,4 +198,4 @@ main(){ pipInstall } -main \ No newline at end of file +main From 2b1fcdec7b9709f0dbb956fd250126deb629a496 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=83=9C=E5=88=AB?= Date: Sun, 4 Apr 2021 03:30:30 +0800 Subject: [PATCH 2/3] add --enable-optimizations flag https://stackoverflow.com/questions/41405728/what-does-enable-optimizations-do-while-compiling-python > This flag enables Profile guided optimization (PGO) and Link Time Optimization (LTO). > Both are expensive optimizations that slow down the build process but yield a significant speed boost (around 10-20% from what I remember reading). --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 44e9d25..fabc54e 100644 --- a/install.sh +++ b/install.sh @@ -141,7 +141,7 @@ compileInstall(){ echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/openssl/lib" >> $HOME/.bashrc source $HOME/.bashrc downloadPackage - ./configure --with-openssl=/usr/local/openssl + ./configure --enable-optimizations --with-openssl=/usr/local/openssl make && make install fi From 1122484a600164071af8685ad0e87f93c04125e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=83=9C=E5=88=AB?= Date: Sun, 4 Apr 2021 03:35:33 +0800 Subject: [PATCH 3/3] add --enable-loadable-sqlite-extensions flag sqlite is a very useful and basic database plugin for using, should be enabled by default --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index fabc54e..8dbf2f7 100644 --- a/install.sh +++ b/install.sh @@ -141,7 +141,7 @@ compileInstall(){ echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/openssl/lib" >> $HOME/.bashrc source $HOME/.bashrc downloadPackage - ./configure --enable-optimizations --with-openssl=/usr/local/openssl + ./configure --enable-optimizations --enable-loadable-sqlite-extensions --with-openssl=/usr/local/openssl make && make install fi