mirror of
https://github.com/andrew-d/static-binaries.git
synced 2025-01-15 00:47:56 +08:00
Upgrade version of OpenSSL for nmap
This commit is contained in:
parent
bda6843abe
commit
243d7dfb4f
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -6,7 +6,7 @@ set -x
|
|||||||
|
|
||||||
|
|
||||||
NMAP_VERSION=6.47
|
NMAP_VERSION=6.47
|
||||||
OPENSSL_VERSION=1.0.2
|
OPENSSL_VERSION=1.0.2a
|
||||||
|
|
||||||
|
|
||||||
function build_openssl() {
|
function build_openssl() {
|
||||||
@ -17,25 +17,6 @@ function build_openssl() {
|
|||||||
tar zxvf openssl-${OPENSSL_VERSION}.tar.gz
|
tar zxvf openssl-${OPENSSL_VERSION}.tar.gz
|
||||||
cd openssl-${OPENSSL_VERSION}
|
cd openssl-${OPENSSL_VERSION}
|
||||||
|
|
||||||
# Patch to make OpenSSL support MUSL
|
|
||||||
patch -p1 <<EOF
|
|
||||||
--- a/crypto/ui/ui_openssl.c
|
|
||||||
+++ b/crypto/ui/ui_openssl.c
|
|
||||||
@@ -190,9 +190,9 @@
|
|
||||||
# undef SGTTY
|
|
||||||
#endif
|
|
||||||
|
|
||||||
-#if defined(linux) && !defined(TERMIO)
|
|
||||||
-# undef TERMIOS
|
|
||||||
-# define TERMIO
|
|
||||||
+#if defined(linux)
|
|
||||||
+# define TERMIOS
|
|
||||||
+# undef TERMIO
|
|
||||||
# undef SGTTY
|
|
||||||
#endif
|
|
||||||
|
|
||||||
EOF
|
|
||||||
|
|
||||||
# Configure
|
# Configure
|
||||||
CC='/opt/cross/x86_64-linux-musl/bin/x86_64-linux-musl-gcc -static' ./Configure no-shared linux-x86_64
|
CC='/opt/cross/x86_64-linux-musl/bin/x86_64-linux-musl-gcc -static' ./Configure no-shared linux-x86_64
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user